small fixes

This commit is contained in:
n1nj4sec 2016-01-24 19:22:47 +01:00
parent 95ca27cd7a
commit 36f36ee49e
3 changed files with 3 additions and 1 deletions

2
.gitignore vendored
View File

@ -34,6 +34,8 @@ client/**/*.py[cod]
pupy/*.py[cod] pupy/*.py[cod]
pupy/pupylib/**/*.py[cod] pupy/pupylib/**/*.py[cod]
pupy/modules/*.py[cod] pupy/modules/*.py[cod]
pupy/modules/lib/*.py[cod]
pupy/modules/lib/**/*.py[cod]
pupy/network/**/*.pyc pupy/network/**/*.pyc
# do not ignore package & templates files # do not ignore package & templates files

View File

@ -4,11 +4,11 @@ from pupylib.PupyModule import *
__class_name__="SetPersistence" __class_name__="SetPersistence"
@compatibility("unix")
def print_callback(data): def print_callback(data):
sys.stdout.write(data) sys.stdout.write(data)
sys.stdout.flush() sys.stdout.flush()
@compatibility("unix")
class SetPersistence(PupyModule): class SetPersistence(PupyModule):
"""Add your pp.py file to /etc/init.d/ scripts """Add your pp.py file to /etc/init.d/ scripts
NOTE: the pp.py script needs to be running with root privileges in order to modify the init scripts.""" NOTE: the pp.py script needs to be running with root privileges in order to modify the init scripts."""