mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
fix(precheck): fails on projects in shuttle repository
It can't find info.yaml, since it's looking for it in the parent directory of the gds while info.yaml is in the same directory as the gds.
This commit is contained in:
@@ -150,7 +150,11 @@ def main():
|
|||||||
if args.template_def:
|
if args.template_def:
|
||||||
template_def = args.template_def
|
template_def = args.template_def
|
||||||
else:
|
else:
|
||||||
yaml_dir = os.path.dirname(os.path.dirname(args.gds))
|
yaml_dir = os.path.dirname(args.gds)
|
||||||
|
while not os.path.exists(f"{yaml_dir}/info.yaml"):
|
||||||
|
yaml_dir = os.path.dirname(yaml_dir)
|
||||||
|
if yaml_dir == "/":
|
||||||
|
raise PrecheckFailure("info.yaml not found")
|
||||||
yaml_file = f"{yaml_dir}/info.yaml"
|
yaml_file = f"{yaml_dir}/info.yaml"
|
||||||
yaml_data = yaml.safe_load(open(yaml_file))
|
yaml_data = yaml.safe_load(open(yaml_file))
|
||||||
logging.info("info.yaml data:" + str(yaml_data))
|
logging.info("info.yaml data:" + str(yaml_data))
|
||||||
|
|||||||
Reference in New Issue
Block a user