From 3972ec1dc20c74de15d694282df35115e37e670d Mon Sep 17 00:00:00 2001 From: Dylan Jones Date: Sun, 13 Dec 2020 06:38:31 -0500 Subject: Switch to pack-lock.ini, ship config files --- util.py | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'util.py') diff --git a/util.py b/util.py index d6ac035..f2e1cd1 100644 --- a/util.py +++ b/util.py @@ -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() -- cgit v1.2.3