From 5772bcb6f16234299ffd5e77effa8c9554f1e5de Mon Sep 17 00:00:00 2001 From: Caleb Smith Date: Fri, 5 Apr 2019 22:53:14 -0500 Subject: [PATCH] Try again to fix stupid bug --- .gitignore | 2 +- install.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a26d8821..a95cec2e 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,4 @@ data/master.srsizetable /helpers/__pycache__ /tmp -error.log \ No newline at end of file +error.log diff --git a/install.py b/install.py index c82e5212..7b755de8 100644 --- a/install.py +++ b/install.py @@ -137,6 +137,10 @@ def main(): for subdir in glob.iglob('tmp', recursive=True): if os.path.exists(os.path.join(subdir, 'rules.txt')): mdir = subdir + if mdir == '': + for subdir in glob.iglob('tmp/*', recursive=True): + if os.path.exists(os.path.join(subdir, 'rules.txt')): + mdir = subdir try: os.chdir(mdir) except Exception as e: