Skip to content

Commit 7617ba4

Browse files
committed
fix #339 User startup.py is being executed TWICE
happens for setting ATSTARTUP as initialisePython() was called unconditionally instead of CHECK_INITIALISED()
1 parent ebb0438 commit 7617ba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PythonScript/src/PythonScript.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ extern "C" __declspec(dllexport) void beNotified(SCNotification *notifyCode)
306306
ConfigFile *config = ConfigFile::getInstance();
307307
if (config->getSetting(_T("STARTUP")) == _T("ATSTARTUP"))
308308
{
309-
initialisePython();
309+
CHECK_INITIALISED();
310310
}
311311
}
312312
break;

0 commit comments

Comments
 (0)