You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(pythonFinalized())thrownewPythonError('node-python\'s python interpreter has already been finalized. python code cannot be executed.');
46
+
47
+
varresult=null;
48
+
49
+
try{
50
+
result=binding.import(string);
51
+
}catch(e){
52
+
e=newPythonError(e);
53
+
debug(e);
54
+
throwe;
55
+
}
56
+
57
+
returnresult;
58
+
}
59
+
60
+
varos=_import('os');
61
+
62
+
varpythonPath=os.environ.get('PYTHONPATH');
63
+
64
+
if(pythonPath===undefined){
65
+
debug('WARNING: PYTHONPATH environment variable is undefined. This may cause problems finding python modules. see: https://docs.python.org/2/tutorial/modules.html#the-module-search-path');
0 commit comments