From a2c5db3882a53b897ef8ff3c0186739f2851f28a Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Mon, 12 Sep 2022 13:56:06 +0200 Subject: [PATCH] Debug imports --- esds/__init__.py | 2 +- esds/__main__.py | 3 +-- esds/{helpers => }/platform.py | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) rename esds/{helpers => }/platform.py (99%) diff --git a/esds/__init__.py b/esds/__init__.py index 9913200..6651316 100644 --- a/esds/__init__.py +++ b/esds/__init__.py @@ -1,4 +1,4 @@ -__all__ = ["simulator", "node", "plugins", "helpers", "rcode", "debug"] +__all__ = ["simulator", "node", "plugins", "helpers", "rcode", "debug", "platform"] __version__ = "0.0.1" from esds.simulator import Simulator diff --git a/esds/__main__.py b/esds/__main__.py index 35637c1..bf05b24 100644 --- a/esds/__main__.py +++ b/esds/__main__.py @@ -1,6 +1,5 @@ import sys, argparse, os -from esds.helpers.platform import YAMLPlatformFile -from esds import __version__ +import platform # Allow importlib to import file from current working directory sys.path.insert(0, os.getcwd()) diff --git a/esds/helpers/platform.py b/esds/platform.py similarity index 99% rename from esds/helpers/platform.py rename to esds/platform.py index c236e60..144e552 100644 --- a/esds/helpers/platform.py +++ b/esds/platform.py @@ -1,7 +1,7 @@ import yaml, os, importlib import numpy as np -from esds import Simulator +import Simulator class UnitsParser: def node_range(r,limit):