Hack fix for relative import issue.
Alternatives are to use a setup-install util, which is an over-solution
This commit is contained in:
1 parent
bb30aab72d
commit
8efe0f919c
2 files changed
+6
-7
No files matched your search
@@ -26,9 +26,9 @@ import sys
|
||||
|
||||
# Needed to include from ../Client/*.py
|
||||
PARENT = os.path.join(os.path.dirname(__file__), os.path.pardir)
|
||||
sys.path.append(os.path.abspath(PARENT))
|
||||
sys.path.append(os.path.abspath(os.path.join(PARENT, 'Client')))
|
||||
|
||||
from Client.bench import run_benchmark
|
||||
from bench import run_benchmark
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
|
||||
Reference in new issue
Block a user