From 41dcc63938e33f88ba0925f24d9835ab478e194d Mon Sep 17 00:00:00 2001 From: Diego Roversi Date: Fri, 20 Sep 2019 10:59:44 +0200 Subject: fix class attribute --- bubbob/bonuses.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bubbob/bonuses.py') 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 -- cgit v1.2.3