Explorar o código

fix build error

rdb %!s(int64=13) %!d(string=hai) anos
pai
achega
16f5e1b56d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      makepanda/makepanda.py

+ 1 - 1
makepanda/makepanda.py

@@ -1686,7 +1686,7 @@ def CompileAnything(target, inputs, opts, progress = None):
         if (origsuffix==".exe" and not sys.platform.startswith("win")):
         if (origsuffix==".exe" and not sys.platform.startswith("win")):
             os.system("chmod +x \"%s\"" % target)
             os.system("chmod +x \"%s\"" % target)
         return
         return
-    elif (target == "pandac/PandaModules.py"):
+    elif (target.endswith("pandac/PandaModules.py")):
         ProgressOutput(progress, "Generating 'pandac' tree")
         ProgressOutput(progress, "Generating 'pandac' tree")
         return RunGenPyCode(target, inputs, opts)
         return RunGenPyCode(target, inputs, opts)
     elif (infile.endswith(".py")):
     elif (infile.endswith(".py")):