Skip to content

Commit 98f6457

Browse files
Remove submodule name from mapscript package
1 parent 1907c26 commit 98f6457

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1-
from .mapscript import *
1+
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

Comments
 (0)