mirror of https://github.com/VLSIDA/OpenRAM.git
globals: Add tech module path to Pythonpath if it exists
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
This commit is contained in:
parent
74cd4f989d
commit
306c0b92c3
|
|
@ -504,6 +504,11 @@ def import_tech():
|
||||||
except ImportError:
|
except ImportError:
|
||||||
debug.error("Could not load tech module.", -1)
|
debug.error("Could not load tech module.", -1)
|
||||||
|
|
||||||
|
# Add custom modules of the technology to the path, if they exist
|
||||||
|
custom_mod_path = os.path.join(tech_path, "modules/")
|
||||||
|
if os.path.exists(custom_mod_path):
|
||||||
|
sys.path.append(custom_mod_path)
|
||||||
|
|
||||||
|
|
||||||
def print_time(name, now_time, last_time=None, indentation=2):
|
def print_time(name, now_time, last_time=None, indentation=2):
|
||||||
""" Print a statement about the time delta. """
|
""" Print a statement about the time delta. """
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue