BUG: Fix GetFileNameWithoutExtension() failing when called with no arguments
The std::string overload added in https://github.com/Slicer/Slicer/commit/74d1fa0b9479c304d6dc18050ed94252e833aedb caused the VTK Python wrapper to see two overloads of GetFileNameWithoutExtension, breaking the default argument on the const char* version. As a result, calling the method with no arguments from Python raised:
TypeError: GetFileNameWithoutExtension() takes exactly 1 argument (0 given)
Guard the std::string overload with #ifndef VTK_WRAP so it is hidden from the VTK wrapper while remaining available to C++ callers.
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
Slicer, or 3D Slicer, is a free, open source software package for visualization and image analysis.
3D Slicer is natively designed to be available on multiple platforms, including Windows, Linux and macOS.
Build instructions for all platforms are available on the Slicer wiki:
For Slicer community announcements and support, visit:
For documentation, tutorials, and more information, please see:
See License.txt for information on using and contributing.