diff options
author | Dylan Jones <dylanjones2011@gmail.com> | 2020-12-13 06:38:31 -0500 |
---|---|---|
committer | Dylan Jones <dylanjones2011@gmail.com> | 2020-12-13 07:06:13 -0500 |
commit | 3972ec1dc20c74de15d694282df35115e37e670d (patch) | |
tree | 70da3ba21315fe9963c47955f72a2c79247c7609 /util.py | |
parent | 4b07b0007d79b18f86cd1775adc87ee47beb7c9e (diff) | |
download | modpackman-3972ec1dc20c74de15d694282df35115e37e670d.tar.gz modpackman-3972ec1dc20c74de15d694282df35115e37e670d.zip |
Switch to pack-lock.ini, ship config files
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() |