Oops, minor fix

This commit is contained in:
rdb
2009-07-24 07:08:18 +00:00
parent ef79354cdb
commit 93ad913c6b
+2 -3
View File
@@ -1235,9 +1235,9 @@ def WriteConfigSettings():
if (PkgSkip("PLUGIN")==0):
#FIXME: do this at runtime or so.
if (sys.platform.startswith("win")):
plugin_config["P3D_PLUGIN_DOWNLOAD"] = "file://C:\\p3dstage"
plugin_config["P3D_PLUGIN_DOWNLOAD"] = "file://C:\\p3dstage/"
else:
plugin_config["P3D_PLUGIN_DOWNLOAD"] = "file:///p3dstage"
plugin_config["P3D_PLUGIN_DOWNLOAD"] = "file:///p3dstage/"
plugin_config["P3D_PLUGIN_LOGFILE1"] = ""
plugin_config["P3D_PLUGIN_LOGFILE2"] = ""
plugin_config["P3D_PLUGIN_P3D_PLUGIN"] = ""
@@ -1265,7 +1265,6 @@ def WriteConfigSettings():
conf = "/* p3d_plugin_config.h. Generated automatically by makepanda.py */\n"
for key in plugin_config.keys():
val = plugin_config[key]
if (val != 'UNDEF' and not val.endswith("/")): val += "/"
if (val == 'UNDEF'): conf = conf + "#undef " + key + "\n"
else: conf = conf + "#define " + key + " \"" + val.replace("\\", "\\\\") + "\"\n"
del plugin_config[key]