@@ -50,7 +50,7 @@ NotInPlace: bool = False
50
50
# Internal settings
51
51
52
52
53
- def itkFormatWarning (msg, *a , **kwa ):
53
+ def _itk_format_warning (msg, *_ , **__ ):
54
54
""""Format the warnings issued by itk to display only the message.
55
55
56
56
This will ignore the filename and the line number where the warning was
@@ -60,35 +60,35 @@ def itkFormatWarning(msg, *a, **kwa):
60
60
61
61
62
62
# Redefine the format of the warnings
63
- warnings.formatwarning = itkFormatWarning
63
+ warnings.formatwarning = _itk_format_warning
64
64
65
65
66
- def normalized_path (relative_posix_path):
66
+ def _normalized_path (relative_posix_path):
67
67
if relative_posix_path != "None":
68
68
file_dir = os.path.split(__file__)[0]
69
69
relative_path = relative_posix_path.replace("/", os.sep)
70
70
return os.path.normpath(os.path.join(file_dir, relative_path))
71
71
72
72
73
73
# swig_lib: location of the swig-generated shared libraries
74
- swig_lib = normalized_path ("@CONFIG_PYTHON_SWIGLIB_DIR@")
74
+ swig_lib = _normalized_path ("@CONFIG_PYTHON_SWIGLIB_DIR@")
75
75
76
76
# swig_py: location of the xxxPython.py swig-generated python interfaces
77
- swig_py = normalized_path ("@CONFIG_PYTHON_SWIGPY_DIR@")
77
+ swig_py = _normalized_path ("@CONFIG_PYTHON_SWIGPY_DIR@")
78
78
79
79
# config_py: location of xxxConfig.py CMake-generated library descriptions
80
- config_py = normalized_path ("@CONFIG_PYTHON_CONFIGPY_DIR@")
80
+ config_py = _normalized_path ("@CONFIG_PYTHON_CONFIGPY_DIR@")
81
81
82
82
# put the itkConfig.py path in the path list
83
83
path = [os.path.join(config_py, "..")]
84
84
# also populate path with the WRAPITK_PYTHON_PATH var
85
85
if "WRAPITK_PYTHON_PATH" in os.environ:
86
86
path.extend(os.environ["WRAPITK_PYTHON_PATH"].split(":"))
87
87
88
- doxygen_root = normalized_path ("../Doc")
88
+ doxygen_root = _normalized_path ("../Doc")
89
89
90
- ITK_GLOBAL_VERSION_STRING : str = "@ITK_VERSION_MAJOR@.@ITK_VERSION_MINOR@.@ITK_VERSION_PATCH@"
90
+ ITK_GLOBAL_VERSION_STRING: str = "@ITK_VERSION_MAJOR@.@ITK_VERSION_MINOR@.@ITK_VERSION_PATCH@"
91
91
92
- del normalized_path
92
+ del _normalized_path
93
93
del os
94
94
del warnings
0 commit comments