mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -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
|
||||
# ctattach.
|
||||
|
||||
def cygpathW(osName):
|
||||
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.directDir = directDir
|
||||
DoGenPyCode.outputDir = os.path.join(directDir, 'built', 'lib', 'pandac')
|
||||
DoGenPyCode.extensionsDir = os.path.join(directDir, 'src', '$[extensions_name]')
|
||||
DoGenPyCode.etcPath = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user