lint and spacing fixes. Also fixed problem with levels not showing up in compiled version (hopefully).
This commit is contained in:
@@ -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'),
|
||||
],
|
||||
|
Reference in New Issue
Block a user