Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change temp_dir default to abs dir #2390

Merged
merged 1 commit into from
Sep 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions vtr_flow/scripts/run_vtr_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import socket
from datetime import datetime
from collections import OrderedDict
import os

# pylint: disable=wrong-import-position, import-error
sys.path.insert(0, str(Path(__file__).resolve().parent / "python_libs"))
Expand Down Expand Up @@ -186,8 +187,8 @@ def vtr_command_argparser(prog=None):

house_keeping.add_argument(
"-temp_dir",
default=None,
help="Directory to run the flow in (will be created if non-existent).",
default=os.getcwd() + "/temp",
help="Absolute Directory to run the flow in (will be created if non-existent).",
)

house_keeping.add_argument("-name", default=None, help="Name for this run to be output.")
Expand Down Expand Up @@ -521,10 +522,9 @@ def vtr_command_main(arg_list, prog=None):
# Load the arguments
args, unknown_args = vtr_command_argparser(prog).parse_known_args(arg_list)
error_status = "Error"
if args.temp_dir is None:
temp_dir = Path("./temp")
else:
temp_dir = Path(args.temp_dir)

assert args.temp_dir
temp_dir = Path(args.temp_dir)
# Specify how command should be run
command_runner = vtr.CommandRunner(
track_memory=args.track_memory_usage,
Expand Down
Loading