python: allow windows to find AppCSXCAD
Signed-off-by: Thorsten Liebig <liebig@imst.de>pull/97/head
parent
df7c58d961
commit
164d3983e3
|
@ -131,7 +131,8 @@ if 0: # debugging only
|
|||
if not os.path.exists(Sim_Path):
|
||||
os.mkdir(Sim_Path)
|
||||
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:
|
||||
|
|
|
@ -170,7 +170,8 @@ if __name__ == '__main__':
|
|||
if not os.path.exists(Sim_Path):
|
||||
os.mkdir(Sim_Path)
|
||||
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:
|
||||
FDTD.Run(Sim_Path, verbose=3, cleanup=True)
|
||||
|
|
|
@ -123,7 +123,8 @@ if 0: # debugging only
|
|||
if not os.path.exists(Sim_Path):
|
||||
os.mkdir(Sim_Path)
|
||||
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:
|
||||
FDTD.Run(Sim_Path, verbose=3, cleanup=True)
|
||||
|
|
|
@ -98,7 +98,8 @@ if 0: # debugging only
|
|||
if not os.path.exists(Sim_Path):
|
||||
os.mkdir(Sim_Path)
|
||||
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:
|
||||
|
|
|
@ -79,7 +79,8 @@ if 0: # debugging only
|
|||
if not os.path.exists(Sim_Path):
|
||||
os.mkdir(Sim_Path)
|
||||
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:
|
||||
|
|
|
@ -88,7 +88,8 @@ if 0: # debugging only
|
|||
if not os.path.exists(Sim_Path):
|
||||
os.mkdir(Sim_Path)
|
||||
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:
|
||||
FDTD.Run(Sim_Path, verbose=3, cleanup=True)
|
||||
|
|
|
@ -102,7 +102,8 @@ if 0: # debugging only
|
|||
if not os.path.exists(Sim_Path):
|
||||
os.mkdir(Sim_Path)
|
||||
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:
|
||||
FDTD.Run(Sim_Path, verbose=3, cleanup=True)
|
||||
|
|
Loading…
Reference in New Issue