minor fixes

This commit is contained in:
David Rose 2009-07-18 00:36:44 +00:00
parent 94f07118c1
commit c8892d4991
2 changed files with 12 additions and 0 deletions

View File

@ -879,6 +879,14 @@ handle_script_request(const string &operation, P3D_object *object,
xvalue->SetAttribute("value", (int)result);
xcommand->LinkEndChild(xvalue);
} else if (operation == "has_method") {
bool result = P3D_OBJECT_HAS_METHOD(object, property_name.c_str());
TiXmlElement *xvalue = new TiXmlElement("value");
xvalue->SetAttribute("type", "bool");
xvalue->SetAttribute("value", (int)result);
xcommand->LinkEndChild(xvalue);
} else if (operation == "call") {
// Convert the single value parameter into an array of parameters.
P3D_object **values = &value;

View File

@ -696,6 +696,10 @@ start_p3dpython() {
env += _python_root_dir;
env += '\0';
env += "LD_LIBRARY_PATH=";
env += _python_root_dir;
env += '\0';
env += "PYTHONPATH=";
env += _python_root_dir;
env += '\0';