From 7413db25f4616b9d2fe4a246a5b192dab3caa747 Mon Sep 17 00:00:00 2001 From: Dave Schuyler Date: Thu, 26 Aug 2004 23:56:43 +0000 Subject: [PATCH] using debug python for debug build; allowing for t at the start of a directory name --- direct/src/ffi/genPyCode.pp | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/direct/src/ffi/genPyCode.pp b/direct/src/ffi/genPyCode.pp index 7d917ee40c..306672a6d9 100644 --- a/direct/src/ffi/genPyCode.pp +++ b/direct/src/ffi/genPyCode.pp @@ -13,6 +13,11 @@ #define install_bin_dir $[or $[INSTALL_BIN_DIR],$[install_dir]/bin] #define install_igatedb_dir $[or $[INSTALL_IGATEDB_DIR],$[install_dir]/etc] +#define python python +#if $[< $[OPTIMIZE],3] + #define python $[python]_d +#endif + // If we're on Win32 without Cygwin, generate a genPyCode.bat file; // for all other platforms, generate a genPyCode sh script. Although // it's true that on non-Win32 platforms we don't need the script @@ -27,7 +32,7 @@ rem #### Generated automatically by $[PPREMAKE] $[PPREMAKE_VERSION] from $[notdir $[THISFILENAME]]. rem ################################# DO NOT EDIT ########################### -python -u $[osfilename $[install_bin_dir]/genPyCode.py] %1 %2 %3 %4 %5 %6 %7 %8 %9 +$[python] -u $[osfilename $[install_bin_dir]/genPyCode.py] %1 %2 %3 %4 %5 %6 %7 %8 %9 #end genPyCode.bat #else // Win32 @@ -37,7 +42,7 @@ python -u $[osfilename $[install_bin_dir]/genPyCode.py] %1 %2 %3 %4 %5 %6 %7 %8 #### Generated automatically by $[PPREMAKE] $[PPREMAKE_VERSION] from $[notdir $[THISFILENAME]]. ################################# DO NOT EDIT ########################### -python -u '$[osfilename $[install_bin_dir]/genPyCode.py]' "$@" +$[python] -u '$[osfilename $[install_bin_dir]/genPyCode.py]' "$@" #end genPyCode #endif // Win32 @@ -102,11 +107,11 @@ from direct.ffi import FFIConstants # The following parameters were baked in to this script at the time # ppremake was run in Direct. -DoGenPyCode.outputDir = '$[osfilename $[install_lib_dir]/pandac]' -DoGenPyCode.extensionsDir = '$[osfilename $[TOPDIR]/src/extensions]' -DoGenPyCode.interrogateLib = 'libdtoolconfig' -DoGenPyCode.codeLibs = '$[GENPYCODE_LIBS]'.split() -DoGenPyCode.etcPath = ['$[osfilename $[install_igatedb_dir]]'] +DoGenPyCode.outputDir = r'$[osfilename $[install_lib_dir]/pandac]' +DoGenPyCode.extensionsDir = r'$[osfilename $[TOPDIR]/src/extensions]' +DoGenPyCode.interrogateLib = r'libdtoolconfig' +DoGenPyCode.codeLibs = r'$[GENPYCODE_LIBS]'.split() +DoGenPyCode.etcPath = [r'$[osfilename $[install_igatedb_dir]]'] #if $[>= $[OPTIMIZE], 4] FFIConstants.wantComments = 0