Skip to content

Commit 02063c9

Browse files
author
Mike Ryan
committed
made some __init__.py edits.
1 parent 15c470c commit 02063c9

9 files changed

Lines changed: 9 additions & 3 deletions

File tree

spacetimeengine/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from os.path import dirname, basename, isfile
2+
import glob
3+
modules = glob.glob(dirname(__file__)+"/*.py")
4+
__all__ = [ basename(f)[:-3] for f in modules if isfile(f) and not f.endswith('__init__.py')]
484 Bytes
Binary file not shown.
631 Bytes
Binary file not shown.
1.5 KB
Binary file not shown.

spacetimeengine/example.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python
2-
from spacetimeengine.solutions import *
3-
from spacetimeengine.spacetime import *
2+
43

54

65
def main():

spacetimeengine/src/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
from spacetimeengine.src import *
1+
from os.path import dirname, basename, isfile
2+
import glob
3+
modules = glob.glob(dirname(__file__)+"/*.py")
4+
__all__ = [ basename(f)[:-3] for f in modules if isfile(f) and not f.endswith('__init__.py')]
488 Bytes
Binary file not shown.
17.5 KB
Binary file not shown.
68.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)