python: allow windows to find AppCSXCAD

Signed-off-by: Thorsten Liebig <liebig@imst.de>
pull/97/head
Thorsten Liebig 2023-01-01 14:13:53 +01:00
parent df7c58d961
commit 164d3983e3
7 changed files with 14 additions and 7 deletions

View File

@ -131,7 +131,8 @@ if 0: # debugging only
if not os.path.exists(Sim_Path): if not os.path.exists(Sim_Path):
os.mkdir(Sim_Path) os.mkdir(Sim_Path)
CSX.Write2XML(CSX_file) CSX.Write2XML(CSX_file)
os.system(r'AppCSXCAD "{}"'.format(CSX_file)) from CSXCAD import AppCSXCAD_BIN
os.system(AppCSXCAD_BIN + ' "{}"'.format(CSX_file))
if not post_proc_only: if not post_proc_only:

View File

@ -170,7 +170,8 @@ if __name__ == '__main__':
if not os.path.exists(Sim_Path): if not os.path.exists(Sim_Path):
os.mkdir(Sim_Path) os.mkdir(Sim_Path)
CSX.Write2XML(CSX_file) CSX.Write2XML(CSX_file)
os.system(r'AppCSXCAD "{}"'.format(CSX_file)) from CSXCAD import AppCSXCAD_BIN
os.system(AppCSXCAD_BIN + ' "{}"'.format(CSX_file))
if not post_proc_only: if not post_proc_only:
FDTD.Run(Sim_Path, verbose=3, cleanup=True) FDTD.Run(Sim_Path, verbose=3, cleanup=True)

View File

@ -123,7 +123,8 @@ if 0: # debugging only
if not os.path.exists(Sim_Path): if not os.path.exists(Sim_Path):
os.mkdir(Sim_Path) os.mkdir(Sim_Path)
CSX.Write2XML(CSX_file) CSX.Write2XML(CSX_file)
os.system(r'AppCSXCAD "{}"'.format(CSX_file)) from CSXCAD import AppCSXCAD_BIN
os.system(AppCSXCAD_BIN + ' "{}"'.format(CSX_file))
if not post_proc_only: if not post_proc_only:
FDTD.Run(Sim_Path, verbose=3, cleanup=True) FDTD.Run(Sim_Path, verbose=3, cleanup=True)

View File

@ -98,7 +98,8 @@ if 0: # debugging only
if not os.path.exists(Sim_Path): if not os.path.exists(Sim_Path):
os.mkdir(Sim_Path) os.mkdir(Sim_Path)
CSX.Write2XML(CSX_file) CSX.Write2XML(CSX_file)
os.system(r'AppCSXCAD "{}"'.format(CSX_file)) from CSXCAD import AppCSXCAD_BIN
os.system(AppCSXCAD_BIN + ' "{}"'.format(CSX_file))
if not post_proc_only: if not post_proc_only:

View File

@ -79,7 +79,8 @@ if 0: # debugging only
if not os.path.exists(Sim_Path): if not os.path.exists(Sim_Path):
os.mkdir(Sim_Path) os.mkdir(Sim_Path)
CSX.Write2XML(CSX_file) CSX.Write2XML(CSX_file)
os.system(r'AppCSXCAD "{}"'.format(CSX_file)) from CSXCAD import AppCSXCAD_BIN
os.system(AppCSXCAD_BIN + ' "{}"'.format(CSX_file))
if not post_proc_only: if not post_proc_only:

View File

@ -88,7 +88,8 @@ if 0: # debugging only
if not os.path.exists(Sim_Path): if not os.path.exists(Sim_Path):
os.mkdir(Sim_Path) os.mkdir(Sim_Path)
CSX.Write2XML(CSX_file) CSX.Write2XML(CSX_file)
os.system(r'AppCSXCAD "{}"'.format(CSX_file)) from CSXCAD import AppCSXCAD_BIN
os.system(AppCSXCAD_BIN + ' "{}"'.format(CSX_file))
if not post_proc_only: if not post_proc_only:
FDTD.Run(Sim_Path, verbose=3, cleanup=True) FDTD.Run(Sim_Path, verbose=3, cleanup=True)

View File

@ -102,7 +102,8 @@ if 0: # debugging only
if not os.path.exists(Sim_Path): if not os.path.exists(Sim_Path):
os.mkdir(Sim_Path) os.mkdir(Sim_Path)
CSX.Write2XML(CSX_file) CSX.Write2XML(CSX_file)
os.system(r'AppCSXCAD "{}"'.format(CSX_file)) from CSXCAD import AppCSXCAD_BIN
os.system(AppCSXCAD_BIN + ' "{}"'.format(CSX_file))
if not post_proc_only: if not post_proc_only:
FDTD.Run(Sim_Path, verbose=3, cleanup=True) FDTD.Run(Sim_Path, verbose=3, cleanup=True)