mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
support Unix too
This commit is contained in:
parent
24633538b6
commit
fad78b354b
@ -140,17 +140,7 @@ DoGenPyCode.etcPath = [r'$[osfilename $[install_igatedb_dir]]']
|
|||||||
# following four; these instead come from the dynamic settings set by
|
# following four; these instead come from the dynamic settings set by
|
||||||
# ctattach.
|
# ctattach.
|
||||||
|
|
||||||
def cygpathW(osName):
|
DoGenPyCode.directDir = directDir
|
||||||
cmd = 'cygpath -w "%s"' % (osName)
|
|
||||||
fd = os.popen(cmd, 'r')
|
|
||||||
result = fd.read()
|
|
||||||
status = fd.close()
|
|
||||||
if status != None:
|
|
||||||
error = 'Execution error: %s returned %s' % (cmd, status)
|
|
||||||
raise error
|
|
||||||
return result.strip()
|
|
||||||
|
|
||||||
DoGenPyCode.directDir = cygpathW(os.environ['DIRECT'])
|
|
||||||
DoGenPyCode.outputDir = os.path.join(directDir, 'built', 'lib', 'pandac')
|
DoGenPyCode.outputDir = os.path.join(directDir, 'built', 'lib', 'pandac')
|
||||||
DoGenPyCode.extensionsDir = os.path.join(directDir, 'src', '$[extensions_name]')
|
DoGenPyCode.extensionsDir = os.path.join(directDir, 'src', '$[extensions_name]')
|
||||||
DoGenPyCode.etcPath = []
|
DoGenPyCode.etcPath = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user