gui.bat lädt jetzt die virtuelle Umgebung. Fix der Abfrage eines Bauteils als Assembly implementiert. Kein Exit im Code mehr, der als Library verwendet werden soll.
This commit is contained in:
@@ -71,15 +71,16 @@ def get_sivas_dbase(sivas_id, out_dir):
|
||||
|
||||
if os.path.isfile(os.path.join(out_dir, sivas_id + ".json")):
|
||||
print("done")
|
||||
return True
|
||||
else:
|
||||
print(f"Failure - Couldn't generate {sivas_id}.json. Check for any spelling/typing errors. Otherwise given number is a part without a BOM.")
|
||||
sys.exit(0)
|
||||
return False
|
||||
else:
|
||||
print(f"'Output directory for .json-file {out_dir}' doesn't exist. Check cremig_setenv.bat or VPN connection.")
|
||||
sys.exit(0)
|
||||
return False
|
||||
else:
|
||||
print(f"Can't execute SIVAS-database query. Check VPN connection and check the path of %SIVAS_DATABASE_QUERY% in cremig_setenv.bat")
|
||||
sys.exit(0)
|
||||
return False
|
||||
|
||||
def get_sivas_teilestamm(sivas_ids, out_dir):
|
||||
"""call the sivas exe for getting all csv files with the item data for the given sivas ids"""
|
||||
|
||||
Reference in New Issue
Block a user