mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-07-01 18:56:40 +00:00
minor bug fix, both issue 80 and 20 are done
This commit is contained in:
parent
14231fff92
commit
fde645fd60
3 changed files with 32 additions and 8 deletions
|
@ -28,8 +28,12 @@ def get_current_instance():
|
|||
#expanduser gives the current user directory
|
||||
instance_file = os.path.expanduser("~") + '/.darknet_participant_url'
|
||||
|
||||
with open(instance_file) as f:
|
||||
return f.read().rstrip()
|
||||
if os.path.exists(instance_file):
|
||||
with open(instance_file) as f:
|
||||
return f.read().rstrip()
|
||||
|
||||
else:
|
||||
return ""
|
||||
|
||||
#Set the local dir on script run
|
||||
conf.LOCAL_DIR = conf.PARTICIPANT_DIR + get_current_instance() + '/'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue