mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
Fix mainfile option in setup.py
This commit is contained in:
parent
e9ae6b5bb1
commit
df7e3f03e2
@ -19,7 +19,8 @@ class build(distutils.command.build.build):
|
||||
def run(self):
|
||||
distutils.command.build.build.run(self)
|
||||
basename = os.path.abspath(os.path.join(self.build_base, self.distribution.get_fullname()))
|
||||
startfile = self.distribution.mainfile
|
||||
gamedir = self.distribution.game_dir
|
||||
startfile = os.path.join(gamedir, self.distribution.mainfile)
|
||||
|
||||
if not os.path.exists(self.build_base):
|
||||
os.makedirs(self.build_base)
|
||||
@ -30,7 +31,6 @@ class build(distutils.command.build.build):
|
||||
freezer.done(addStartupModules=True)
|
||||
freezer.generateRuntimeFromStub(basename)
|
||||
|
||||
gamedir = self.distribution.game_dir
|
||||
for item in os.listdir(gamedir):
|
||||
if item in ('__pycache__', startfile):
|
||||
continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user