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