Skip to content
Snippets Groups Projects
Commit 1871eb56 authored by Roland Haas's avatar Roland Haas
Browse files

handle output directories with slashes and also just "."

parent bfb87571
No related branches found
No related tags found
No related merge requests found
......@@ -801,7 +801,8 @@ def main():
else:
modes = all_modes
sim_name = os.path.split(args.path)[-1]
# last path component, handling trailing '/' and '.' as a path
sim_name = os.path.split(os.path.abspath(args.path))[-1]
output_directory = args.output_directory.format(sim_name = sim_name)
if args.method == "POWER":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment