Browse Source

generalize for cvs built

David Rose 20 years ago
parent
commit
e8aa876616
1 changed files with 10 additions and 0 deletions
  1. 10 0
      direct/src/ffi/genPyCode.pp

+ 10 - 0
direct/src/ffi/genPyCode.pp

@@ -42,7 +42,17 @@ $[python] -u $[osfilename $[install_bin_dir]/genPyCode.py] %1 %2 %3 %4 %5 %6 %7
 #### Generated automatically by $[PPREMAKE] $[PPREMAKE_VERSION] from $[notdir $[THISFILENAME]].
 #### Generated automatically by $[PPREMAKE] $[PPREMAKE_VERSION] from $[notdir $[THISFILENAME]].
 ################################# DO NOT EDIT ###########################
 ################################# DO NOT EDIT ###########################
 
 
+#if $[CTPROJS]
+# This script was generated while the user was using the ctattach
+# tools.  That had better still be the case.
+#if $[WINDOWS_PLATFORM]
+$[python] -u `cygpath -w $DIRECT/built/bin/genPyCode.py` "$@"
+#else
+$[python] -u $DIRECT/built/bin/genPyCode.py "$@"
+#endif
+#else
 $[python] -u '$[osfilename $[install_bin_dir]/genPyCode.py]' "$@"
 $[python] -u '$[osfilename $[install_bin_dir]/genPyCode.py]' "$@"
+#endif
 #end genPyCode
 #end genPyCode
 
 
 #endif  // Win32
 #endif  // Win32