Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Remove unsupported/deprecated tcl functionality (#4867)
- Loading branch information
1 parent
2fbf89c
commit 9a9c2b1
Showing
28 changed files
with
0 additions
and
1,691 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 0 additions & 58 deletions
58
Applications/SlicerApp/Testing/Cpp/qSlicerApplicationTpyclEMSegmentIntegrationTest.cxx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +0,0 @@ | ||
|
||
// CTK includes | ||
#include <ctkScopedCurrentDir.h> | ||
|
||
// Slicer includes | ||
#include "qSlicerApplication.h" | ||
#include "qSlicerCorePythonManager.h" | ||
|
||
// EMSegment includes | ||
#include "vtkSlicerCommonInterface.h" | ||
|
||
// STD includes | ||
#include <cstdio> | ||
|
||
// test the tcl adapter provided by the Slicer Common Interface | ||
int qSlicerApplicationTpyclEMSegmentIntegrationTest(int argc, char* argv[]) | ||
{ | ||
if (argc < 2) | ||
{ | ||
std::cerr << "Usage:\n" | ||
<< " " << argv[0] << " </path/to/EMSegmentCommandLine>" << std::endl; | ||
return EXIT_FAILURE; | ||
} | ||
|
||
vtkSlicerCommonInterface* common = vtkSlicerCommonInterface::New(); | ||
|
||
// Slicer4 | ||
qSlicerApplication* app = new qSlicerApplication(argc, argv); | ||
|
||
#ifdef Slicer_USE_PYTHONQT_WITH_TCL | ||
bool disablePython = qSlicerApplication::testAttribute(qSlicerApplication::AA_DisablePython); | ||
if(!disablePython) | ||
{ | ||
// Load EMSegment Python module(s) | ||
QString emsegmentModulePath = QString::fromStdString( | ||
vtkSlicerApplicationLogic::GetModuleSlicerXYLibDirectory(argv[1])); | ||
emsegmentModulePath.append("/" Slicer_QTLOADABLEMODULES_SUBDIR); | ||
app->pythonManager()->appendPythonPath(emsegmentModulePath); | ||
// Update current application directory, so that *PythonD modules can be loaded | ||
ctkScopedCurrentDir scopedCurrentDir(emsegmentModulePath); | ||
|
||
QString emsegmentModulePythonPath = emsegmentModulePath + "/Python"; | ||
std::cout << "emsegmentModulePythonPath:" << qPrintable(emsegmentModulePythonPath) << std::endl; | ||
app->pythonManager()->executeString(QString( | ||
"from slicer.util import importVTKClassesFromDirectory;" | ||
"importVTKClassesFromDirectory('%1', 'slicer', filematch='vtkSlicer%2ModuleLogic.py');" | ||
"importVTKClassesFromDirectory('%1', 'slicer', filematch='vtkSlicer%2ModuleMRML.py');" | ||
).arg(emsegmentModulePythonPath).arg("EMSegment")); | ||
|
||
} | ||
#endif | ||
|
||
delete app; | ||
|
||
common->Delete(); | ||
|
||
return EXIT_SUCCESS; | ||
} | ||
118 changes: 0 additions & 118 deletions
118
Applications/SlicerApp/Testing/Cpp/qSlicerApplicationTpyclTest1.cxx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.