Commit 8b2fefc3 authored by Antoine Kaufmann's avatar Antoine Kaufmann Committed by Antoine Kaufmann
Browse files

experiments/run.py: support out-of-tree runs with default params

Currently --repo, which is used to find simulators etc., defaults to '..',
which only works when executing in the 'experiments' directory in the simbricks
repo. Instead we make this relative to the run.py-file's path.
parent c8a8b8cb
...@@ -109,7 +109,7 @@ def parse_args() -> argparse.Namespace: ...@@ -109,7 +109,7 @@ def parse_args() -> argparse.Namespace:
'--repo', '--repo',
metavar='DIR', metavar='DIR',
type=str, type=str,
default='..', default=os.path.dirname(__file__) + '/..',
help='SimBricks repository directory' help='SimBricks repository directory'
) )
g_env.add_argument( g_env.add_argument(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment