From fad78b354b8a592bfa52025668bdb5d78379c9ff Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 31 Aug 2005 17:09:54 +0000 Subject: [PATCH] support Unix too --- direct/src/ffi/genPyCode.pp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/direct/src/ffi/genPyCode.pp b/direct/src/ffi/genPyCode.pp index 19114f4d8c..42fa96d62f 100644 --- a/direct/src/ffi/genPyCode.pp +++ b/direct/src/ffi/genPyCode.pp @@ -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 = []