3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-04 05:49:57 +00:00

Print an error message when using "--status" with no project specified

This commit is contained in:
Jannis Harder 2024-03-11 15:37:39 +01:00
parent 0c84510cef
commit fd381ade05

View file

@ -61,6 +61,9 @@ status_reset = args.status_reset
if status_show or status_reset:
target = workdir_prefix or workdir or sbyfile
if target is None:
print("ERROR: Specify a .sby config file or working directory to use --status.")
sys.exit(1)
if not os.path.isdir(target) and target.endswith('.sby'):
target = target[:-4]
if not os.path.isdir(target):