diff options
author | Diego Roversi <diegor@tiscali.it> | 2019-09-20 10:59:44 +0200 |
---|---|---|
committer | Diego Roversi <diegor@tiscali.it> | 2019-09-20 10:59:44 +0200 |
commit | 41dcc63938e33f88ba0925f24d9835ab478e194d (patch) | |
tree | 8959720fd77bbd6c9a506e08097982e4da0650e0 /bubbob/bonuses.py | |
parent | 27342a12e0f75fdb692186f6efdb3c4ed8fed09d (diff) |
fix class attribute
Diffstat (limited to 'bubbob/bonuses.py')
-rw-r--r-- | bubbob/bonuses.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bubbob/bonuses.py b/bubbob/bonuses.py index b3ce653..882a292 100644 --- a/bubbob/bonuses.py +++ b/bubbob/bonuses.py @@ -1027,9 +1027,10 @@ class Potion(RandomBonus): ('potion4', 750, None), ] LocalDir = os.path.dirname(__file__) or os.curdir - Extensions = [s for s in os.listdir(LocalDir) + # print(f"LocalDir = {LocalDir}") + Extensions = [s for s in os.listdir(os.path.dirname(__file__) or os.curdir) if s.startswith('ext') and - os.path.isdir(os.path.join(LocalDir, s))] + os.path.isdir(os.path.join(os.path.dirname(__file__) or os.curdir, s))] random.shuffle(Extensions) extra_cheat_arg = None big = 0 |