Commit cbe3ad00 authored by Theophile Terraz's avatar Theophile Terraz
Browse files

debug adists windows

No related merge requests found
Showing with 5 additions and 5 deletions
+5 -5
No preview for this file type
......@@ -128,9 +128,9 @@ class AdisTS(CommandLineSolver):
repertory, f"{name}.REP"
), "w+"
) as f:
f.write(f"NET ../{mage_rep}/{name}.NET\n")
f.write(f"REP ../{mage_rep}/{name}.REP\n")
path = os.path.join("..",mage_rep,name)
f.write(f"NET {path}.NET\n")
f.write(f"REP {path}.REP\n")
for file in files:
EXT = file.split('.')[1]
......@@ -140,7 +140,7 @@ class AdisTS(CommandLineSolver):
path_mage_net = os.path.join(os.path.abspath(
os.path.join(repertory, os.pardir)
), f"{mage_rep}/net")
), os.path.join(mage_rep,"net"))
path_adists_net = os.path.join(repertory, "net")
if os.path.exists(path_mage_net):
......@@ -729,7 +729,7 @@ class AdisTSwc(AdisTS):
data_tmp = {}
for file_bin in path_files:
key_pol = file_bin.split("/")[-1][0:-4]
key_pol = os.path.basename(file_bin)[0:-4]
data_tmp[key_pol] = {}
with open(file_bin, 'rb') as f:
# header
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment