mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fix sys.path issues within finding implicit modules using module() or mainModule()
This commit is contained in:
parent
23d5b8e3b5
commit
ca0675d20d
@ -172,6 +172,14 @@ packageNames = None
|
|||||||
if len(args) > 1:
|
if len(args) > 1:
|
||||||
packageNames = args[1:]
|
packageNames = args[1:]
|
||||||
|
|
||||||
|
# Add the directory containing the pdef file itself to sys.path, to
|
||||||
|
# help the Packager locate modules where a pathname isn't specified.
|
||||||
|
dirname = packageDef.getDirname()
|
||||||
|
if dirname:
|
||||||
|
sys.path.append(Filename(dirname).toOsSpecific())
|
||||||
|
else:
|
||||||
|
sys.path.append('.')
|
||||||
|
|
||||||
if universalBinaries:
|
if universalBinaries:
|
||||||
if platforms:
|
if platforms:
|
||||||
print '\nYou may not specify both -u and -P.\n'
|
print '\nYou may not specify both -u and -P.\n'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user