fixed test again

This commit is contained in:
Kevin Froman 2018-01-15 02:52:45 -06:00
parent 6428d38916
commit 6d6d60ff7a
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B

View File

@ -31,6 +31,10 @@ class Onionr:
In general, external programs and plugins should not use this class. In general, external programs and plugins should not use this class.
''' '''
try:
os.chdir(sys.path[0])
except FileNotFoundError:
pass
if os.path.exists('dev-enabled'): if os.path.exists('dev-enabled'):
print('DEVELOPMENT MODE ENABLED (THIS IS LESS SECURE!)') print('DEVELOPMENT MODE ENABLED (THIS IS LESS SECURE!)')
self._developmentMode = True self._developmentMode = True
@ -45,10 +49,6 @@ class Onionr:
# Get configuration and Handle commands # Get configuration and Handle commands
self.debug = False # Whole application debugging self.debug = False # Whole application debugging
try:
os.chdir(sys.path[0])
except FileNotFoundError:
pass
if os.path.exists('data-encrypted.dat'): if os.path.exists('data-encrypted.dat'):
while True: while True: