-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename scanpro.py to main.py to solve circular import error
- Loading branch information
Showing
3 changed files
with
2 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1 @@ | ||
from importlib import import_module | ||
from ._version import __version__ | ||
|
||
# Set functions to be available directly from upper scanpro, i.e. "from scanpro import scanpro" | ||
global_classes = ["scanpro.scanpro.scanpro", | ||
"scanpro.scanpro.run_scanpro", | ||
"scanpro.scanpro.anova", | ||
"scanpro.scanpro.t_test", | ||
"scanpro.scanpro.sim_scanpro" | ||
] | ||
|
||
for c in global_classes: | ||
|
||
module_name = ".".join(c.split(".")[:-1]) | ||
attribute_name = c.split(".")[-1] | ||
|
||
module = import_module(module_name) | ||
attribute = getattr(module, attribute_name) | ||
|
||
globals()[attribute_name] = attribute |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters