diff options
Diffstat (limited to 'util.py')
-rw-r--r-- | util.py | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -38,6 +38,16 @@ def load_config(): return config +def update_self(): + """ + Try to download new versions of all of the pack configuration and data files + in order to update to the latest version. Will overwrite any existing pack.ini and other + config files, so be careful! + """ + + raise NotImplementedError() + + def find_minecraft_directory(): """ Find the location of the user's .minecraft folder based on @@ -236,7 +246,6 @@ def firefox(): """ Start a headless Firefox instance and return the Selenium refrence to it. """ - #print("Starting Selenium...") try: from selenium.webdriver import Firefox from selenium.webdriver.firefox.options import Options @@ -246,9 +255,10 @@ def firefox(): options = Options() options.add_argument('-headless') options.add_argument('--window-size 1920,1080') - #for ~~cursed~~ windows people, put geckodriver in this folder - if(os.path.exists("./geckodriver.exe")): - return Firefox(executable_path='./geckodriver') + + # for ~~cursed~~ windows people, put geckodriver in the folder next to modpackman.py + if(os.path.exists("../../geckodriver.exe")): + return Firefox(executable_path='../../geckodriver') return Firefox() |