@@ -1096,65 +1096,101 @@ def simularium_cb(self):
10961096 def template_cb (self ):
10971097 self .load_model ("template" )
10981098 if self .studio_flag :
1099- self .run_tab .exec_name .setText ('./project' )
1099+ if platform .system () == "Windows" :
1100+ self .run_tab .exec_name .setText ('./project.exe' )
1101+ else :
1102+ self .run_tab .exec_name .setText ('./project' )
11001103
11011104 def biorobots_cb (self ):
11021105 # self.load_model("biorobots")
11031106 # self.load_model("biorobots_flat")
11041107 self .load_model ("biorobots" )
11051108 if self .studio_flag :
1106- self .run_tab .exec_name .setText ('./biorobots' )
1109+ if platform .system () == "Windows" :
1110+ self .run_tab .exec_name .setText ('./biorobots.exe' )
1111+ else :
1112+ self .run_tab .exec_name .setText ('./biorobots' )
11071113
11081114 def tumor_immune_cb (self ):
11091115 self .load_model ("tumor_immune" )
11101116 if self .studio_flag :
1111- self .run_tab .exec_name .setText ('./project' )
1117+ if platform .system () == "Windows" :
1118+ self .run_tab .exec_name .setText ('./project.exe' )
1119+ else :
1120+ self .run_tab .exec_name .setText ('./project' )
11121121
11131122 def cancer_biorobots_cb (self ):
11141123 self .load_model ("cancer_biorobots" )
11151124 if self .studio_flag :
1116- self .run_tab .exec_name .setText ('./cancer_biorobots' )
1125+ if platform .system () == "Windows" :
1126+ self .run_tab .exec_name .setText ('./cancer_biorobots.exe' )
1127+ else :
1128+ self .run_tab .exec_name .setText ('./cancer_biorobots' )
11171129
11181130 def hetero_cb (self ):
11191131 self .load_model ("heterogeneity" )
11201132 if self .studio_flag :
1121- self .run_tab .exec_name .setText ('./heterogeneity' )
1133+ if platform .system () == "Windows" :
1134+ self .run_tab .exec_name .setText ('./heterogeneity.exe' )
1135+ else :
1136+ self .run_tab .exec_name .setText ('./heterogeneity' )
11221137
11231138 def pred_prey_cb (self ):
11241139 self .load_model ("pred_prey_farmer" )
11251140 if self .studio_flag :
1126- self .run_tab .exec_name .setText ('./pred_prey' )
1141+ if platform .system () == "Windows" :
1142+ self .run_tab .exec_name .setText ('./pred_prey.exe' )
1143+ else :
1144+ self .run_tab .exec_name .setText ('./pred_prey' )
11271145
11281146 def virus_mac_cb (self ):
11291147 self .load_model ("virus_macrophage" )
11301148 if self .studio_flag :
1131- self .run_tab .exec_name .setText ('./virus-sample' )
1149+ if platform .system () == "Windows" :
1150+ self .run_tab .exec_name .setText ('./virus-sample.exe' )
1151+ else :
1152+ self .run_tab .exec_name .setText ('./virus-sample' )
11321153
11331154 def worm_cb (self ):
11341155 self .load_model ("worm" )
11351156 if self .studio_flag :
1136- self .run_tab .exec_name .setText ('./worm' )
1157+ if platform .system () == "Windows" :
1158+ self .run_tab .exec_name .setText ('./worm.exe' )
1159+ else :
1160+ self .run_tab .exec_name .setText ('./worm' )
11371161
11381162 def interactions_cb (self ):
11391163 self .load_model ("interactions" )
11401164 if self .studio_flag :
1141- self .run_tab .exec_name .setText ('./interaction_demo' )
1165+ if platform .system () == "Windows" :
1166+ self .run_tab .exec_name .setText ('./interaction_demo.exe' )
1167+ else :
1168+ self .run_tab .exec_name .setText ('./interaction_demo' )
11421169
11431170 def mechano_cb (self ):
11441171 self .load_model ("mechano" )
11451172 if self .studio_flag :
1146- self .run_tab .exec_name .setText ('./mechano' )
1173+ if platform .system () == "Windows" :
1174+ self .run_tab .exec_name .setText ('./mechano.exe' )
1175+ else :
1176+ self .run_tab .exec_name .setText ('./mechano' )
11471177
11481178 def cancer_immune_cb (self ):
11491179 self .load_model ("cancer_immune3D_flat" )
11501180 if self .studio_flag :
1151- self .run_tab .exec_name .setText ('./cancer_immune_3D' )
1181+ if platform .system () == "Windows" :
1182+ self .run_tab .exec_name .setText ('./cancer_immune_3D.exe' )
1183+ else :
1184+ self .run_tab .exec_name .setText ('./cancer_immune_3D' )
11521185
11531186 def physiboss_cell_lines_cb (self ):
11541187 self .load_model ("physiboss" )
11551188 # self.vis_tab.physiboss_vis_checkbox = None # done in load_model
11561189 if self .studio_flag :
1157- self .run_tab .exec_name .setText ('./PhysiBoSS_Cell_Lines' )
1190+ if platform .system () == "Windows" :
1191+ self .run_tab .exec_name .setText ('./PhysiBoSS_Cell_Lines.exe' )
1192+ else :
1193+ self .run_tab .exec_name .setText ('./PhysiBoSS_Cell_Lines' )
11581194
11591195 def subcell_cb (self ):
11601196 self .load_model ("subcellular_flat" )
@@ -1325,8 +1361,10 @@ def main():
13251361 parser .add_argument ("--bioinf_import" , help = "display bioinformatics import tab on ICs tab" , action = "store_true" )
13261362 parser .add_argument ("--bioinf_import_test" , help = "immediately start loading anndata w/o spatial" , action = "store_true" )
13271363 parser .add_argument ("--bioinf_import_test_spatial" , help = "immediately start loading spatial anndata" , action = "store_true" )
1328-
1329- exec_file = 'project' # for template sample
1364+ if platform .system () == "Windows" :
1365+ exec_file = 'project.exe'
1366+ else :
1367+ exec_file = 'project' # for template sample
13301368
13311369 # args = parser.parse_args()
13321370 args , unknown = parser .parse_known_args ()
0 commit comments