From b5cb5d91db47420623aad525eef4bd1b913a52ea Mon Sep 17 00:00:00 2001 From: dandds Date: Tue, 11 Sep 2018 11:34:08 -0400 Subject: [PATCH] resolve module path in EDA example script --- script/example_fetch_from_eda.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/script/example_fetch_from_eda.py b/script/example_fetch_from_eda.py index 6c4554ce..8425f3c8 100644 --- a/script/example_fetch_from_eda.py +++ b/script/example_fetch_from_eda.py @@ -1,3 +1,10 @@ +# Add root project dir to the python path +import os +import sys + +parent_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) +sys.path.append(parent_dir) + from atst.app import make_config, make_app from atst.eda_client import EDAClient