diff --git a/wicked_quest.spec b/wicked_quest.spec index cc3a0be..1e08192 100644 --- a/wicked_quest.spec +++ b/wicked_quest.spec @@ -1,15 +1,7 @@ # -*- mode: python ; coding: utf-8 -*- -import os - -# Collect level directories dynamically -level_dirs = [] -levels_path = 'levels' -if os.path.exists(levels_path): - for item in os.listdir(levels_path): - item_path = os.path.join(levels_path, item) - if os.path.isdir(item_path): - level_dirs.append((item_path, item_path)) +# Include entire levels directory (simpler and more reliable) +level_dirs = [('levels', 'levels')] a = Analysis( ['wicked_quest.py'],