Ignore:
Timestamp:
Jun 27, 2019, 12:57:25 PM (5 years ago)
Author:
knut
Message:

Fix problem with the parsing of system environment variables (Windows version). Need to verify that problem does not pertain to non-Windows versions also.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/service_internal_python.c

    r939 r943  
    236236          SetEnvironmentVariable("PYTHONHOME", home->value);
    237237  }
    238   char buffer[128];       
     238  char buffer[128];
    239239#endif 
    240240  if(hasToClean>0)
     
    254254#else
    255255  init_zoo();
    256 #endif  
     256#endif
    257257  mainstate = PyThreadState_Swap(NULL);
    258258  PyEval_ReleaseLock();
     
    285285    errorException (m, "Unable to parse serviceProvider please check your zcfg file.", "NoApplicableCode", NULL);
    286286    exit(-1);
    287   } 
    288   pModule = PyImport_Import(pName);   
     287  }
     288
     289  pModule = PyImport_Import(pName);
    289290  int res=SERVICE_FAILED;
    290291  if (pModule != NULL) {
     
    301302      PyTuple_SetItem(pArgs, 1, (PyObject *)arg2);
    302303      PyTuple_SetItem(pArgs, 2, (PyObject *)arg3);
    303       pValue = PyObject_CallObject(pFunc, pArgs);         
     304      pValue = PyObject_CallObject(pFunc, pArgs);
    304305      if (pValue != NULL) {
    305306        res=PyInt_AsLong(pValue);
     
    335336#endif
    336337  PyThreadState_Swap(mainstate);
    337   Py_Finalize(); 
     338  Py_Finalize();
    338339  return res;
    339340}
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png