We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1907c26 commit 98f6457Copy full SHA for 98f6457
mapscript/python/mapscript/__init__.py
@@ -1 +1,12 @@
1
-from .mapscript import *
+import inspect
2
+from .mapscript import *
3
+
4
+# change all the class module names from mapscript.mapscript to mapscript
5
6
+for key, value in globals().copy().items():
7
+ if inspect.isclass(value) and value.__module__.startswith('mapscript.'):
8
+ value.__module__= 'mapscript'
9
10
+# remove the submodule name
11
12
+del mapscript
0 commit comments