lint and spacing fixes. Also fixed problem with levels not showing up in compiled version (hopefully).

This commit is contained in:
Storm Dragon
2025-09-09 22:02:33 -04:00
parent 949c12f193
commit 21d3cd7788
21 changed files with 540 additions and 584 deletions

View File

@@ -1,12 +1,21 @@
# -*- 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))
a = Analysis(
['wicked_quest.py'],
pathex=[],
binaries=[],
datas=[
('levels', 'levels'),
datas=level_dirs + [
('sounds', 'sounds'),
('libstormgames', 'libstormgames'),
],