Skip to content

Commit a34f357

Browse files
committed
Weird python test init
1 parent 94fd5c4 commit a34f357

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Core/Python/Tests/PythonInterpreterTests.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,12 @@ class FieldConversionTests : public testing::Test
5151
protected:
5252
virtual void SetUp() override
5353
{
54+
#ifdef WIN32
5455
PythonInterpreter::Instance().initialize(false, "Core_Python_Tests", boost::filesystem::current_path().string());
5556
PythonInterpreter::Instance().run_string("import SCIRunPythonAPI; from SCIRunPythonAPI import *");
57+
#else
58+
Py_Initialize();
59+
#endif
5660
}
5761

5862
static FieldHandle roundTripThroughMatlabConverter(FieldHandle field)

0 commit comments

Comments
 (0)