Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
Try again to fix stupid bug
Browse files Browse the repository at this point in the history
  • Loading branch information
NiceneNerd committed Apr 6, 2019
1 parent 1d7d1ae commit 5772bcb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
data/master.srsizetable
/helpers/__pycache__
/tmp
error.log
error.log
4 changes: 4 additions & 0 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5772bcb

Please sign in to comment.