try some folders for updater

This commit is contained in:
Fabian Dill 2020-03-06 23:30:18 +01:00
parent 6059db3ea0
commit dbf38db16f
1 changed files with 4 additions and 1 deletions

View File

@ -17,7 +17,10 @@ def update():
global update_ran
if not update_ran:
update_ran = True
with open(os.path.join(os.path.dirname(__file__), 'requirements.txt')) as requirementsfile:
path = os.path.join(os.path.dirname(sys.argv[0]), 'requirements.txt')
if not os.path.exists(path):
os.path.join(os.path.dirname(__file__), 'requirements.txt')
with open(path) as requirementsfile:
for line in requirementsfile.readlines():
module, remoteversion = line.split(">=")
module = naming_specialties.get(module, module)