diff --git a/gprMax/__init__.py b/gprMax/__init__.py index 1e2cc36f..152d4e97 100644 --- a/gprMax/__init__.py +++ b/gprMax/__init__.py @@ -1,2 +1 @@ -# This is where the version number is set and read by setup.py and conf.py (for the docs) -__version__ = '3.0.0b19' \ No newline at end of file +from gprMax._version import __version__ \ No newline at end of file diff --git a/gprMax/__main__.py b/gprMax/__main__.py index 889b8fb2..6fd7955c 100644 --- a/gprMax/__main__.py +++ b/gprMax/__main__.py @@ -1,7 +1,9 @@ """gprMax.__main__: executed when gprMax directory is called as script.""" -from .gprMax import main -main() +import gprMax.gprMax + +if __name__ == '__main__': + gprMax.gprMax.main() # Code profiling # Time profiling