diff --git a/python/Tutorials/Bent_Patch_Antenna.py b/python/Tutorials/Bent_Patch_Antenna.py index 5d3e568..6d8cd58 100644 --- a/python/Tutorials/Bent_Patch_Antenna.py +++ b/python/Tutorials/Bent_Patch_Antenna.py @@ -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: diff --git a/python/Tutorials/CRLH_Extraction.py b/python/Tutorials/CRLH_Extraction.py index 00984d3..2c42738 100644 --- a/python/Tutorials/CRLH_Extraction.py +++ b/python/Tutorials/CRLH_Extraction.py @@ -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) diff --git a/python/Tutorials/Helical_Antenna.py b/python/Tutorials/Helical_Antenna.py index 3211ec8..6e802de 100644 --- a/python/Tutorials/Helical_Antenna.py +++ b/python/Tutorials/Helical_Antenna.py @@ -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) diff --git a/python/Tutorials/MSL_NotchFilter.py b/python/Tutorials/MSL_NotchFilter.py index 0448aa0..a522ce2 100644 --- a/python/Tutorials/MSL_NotchFilter.py +++ b/python/Tutorials/MSL_NotchFilter.py @@ -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: diff --git a/python/Tutorials/RCS_Sphere.py b/python/Tutorials/RCS_Sphere.py index db3eae2..5a6384d 100644 --- a/python/Tutorials/RCS_Sphere.py +++ b/python/Tutorials/RCS_Sphere.py @@ -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: diff --git a/python/Tutorials/Rect_Waveguide.py b/python/Tutorials/Rect_Waveguide.py index 226c2e2..97cba13 100644 --- a/python/Tutorials/Rect_Waveguide.py +++ b/python/Tutorials/Rect_Waveguide.py @@ -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) diff --git a/python/Tutorials/Simple_Patch_Antenna.py b/python/Tutorials/Simple_Patch_Antenna.py index cd80f78..564f054 100644 --- a/python/Tutorials/Simple_Patch_Antenna.py +++ b/python/Tutorials/Simple_Patch_Antenna.py @@ -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)