mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00
Make 'requirements.txt' be read from module's own...
... directory
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import os
|
||||
import sys
|
||||
import subprocess
|
||||
import importlib
|
||||
@@ -11,7 +12,7 @@ def update():
|
||||
global update_ran
|
||||
if not update_ran:
|
||||
update_ran = True
|
||||
with open('requirements.txt') as requirementsfile:
|
||||
with open(os.path.join(os.path.dirname(__file__),'requirements.txt')) as requirementsfile:
|
||||
for line in requirementsfile.readlines():
|
||||
module, remoteversion = line.split(">=")
|
||||
try:
|
||||
@@ -33,4 +34,4 @@ def update():
|
||||
update_command()
|
||||
|
||||
if __name__ == "__main__":
|
||||
update()
|
||||
update()
|
||||
|
Reference in New Issue
Block a user