From d6ce7c6562c88e565696dac12b3740ee3304e5e9 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 12 Jan 2015 20:35:17 +0100 Subject: [PATCH] Oops, fix build --- direct/src/p3d/Packager.py | 2 +- direct/src/p3d/panda3d.pdef | 2 +- makepanda/makepanda.py | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/direct/src/p3d/Packager.py b/direct/src/p3d/Packager.py index afc187f734..18cce7d7d9 100644 --- a/direct/src/p3d/Packager.py +++ b/direct/src/p3d/Packager.py @@ -3634,7 +3634,7 @@ class Packager: for subfile in dirList: filename = subfile.getFilename() if filename.getBasename() == '__init__.py': - moduleName = newName.replace("/", ".").rsplit('.', 1)[0] + moduleName = newName.replace("/", ".") self.addModule([moduleName], filename=filename) for subfile in dirList: diff --git a/direct/src/p3d/panda3d.pdef b/direct/src/p3d/panda3d.pdef index 88952f3be7..4f3df21c97 100755 --- a/direct/src/p3d/panda3d.pdef +++ b/direct/src/p3d/panda3d.pdef @@ -373,7 +373,7 @@ class vrpn(package): config(display_name = "Panda3D VRPN support") require('panda3d') - module('panda3d.vrpn') + module('panda3d.vrpn', required = True) file('libp3vrpn.dll', required = True) diff --git a/makepanda/makepanda.py b/makepanda/makepanda.py index 7a1e0cf11c..807803fc1d 100755 --- a/makepanda/makepanda.py +++ b/makepanda/makepanda.py @@ -2206,7 +2206,8 @@ def WriteConfigSettings(): if (RTDIST or RUNTIME): prc_parameters["DEFAULT_PRC_DIR"] = '""' - plugin_config["PANDA_PACKAGE_HOST_URL"] = HOST_URL + if HOST_URL: + plugin_config["PANDA_PACKAGE_HOST_URL"] = HOST_URL #plugin_config["P3D_PLUGIN_LOG_DIRECTORY"] = "" plugin_config["P3D_PLUGIN_LOG_BASENAME1"] = "" plugin_config["P3D_PLUGIN_LOG_BASENAME2"] = "" @@ -2416,7 +2417,7 @@ def CreatePandaVersionFiles(): pandaversion_h = pandaversion_h.replace("$DISTRIBUTOR",DISTRIBUTOR) pandaversion_h = pandaversion_h.replace("$RTDIST_VERSION",RTDIST_VERSION) pandaversion_h = pandaversion_h.replace("$COREAPI_VERSION",COREAPI_VERSION) - pandaversion_h = pandaversion_h.replace("$HOST_URL",HOST_URL) + pandaversion_h = pandaversion_h.replace("$HOST_URL",(HOST_URL or "")) if (DISTRIBUTOR == "cmu"): pandaversion_h += "\n#define PANDA_OFFICIAL_VERSION\n" else: