Skip to content

Commit cd32159

Browse files
committed
First steps toward solving PaNOSC-ViNYL#101
1 parent 813e2ef commit cd32159

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

mcstasscript/interface/instr.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2718,6 +2718,10 @@ def show_instrument(self, format="webgl-classic", width=800, height=450, new_tab
27182718
executable_path = self._run_settings["executable_path"]
27192719
bin_path = os.path.join(executable_path, executable)
27202720

2721+
# Append .bat on windows - or script will not be found...
2722+
if os.name == 'nt':
2723+
bin_path = bin_path + '.bat'
2724+
27212725
if not os.path.isfile(bin_path):
27222726
# Take bin in package path into account
27232727
package_path = self._run_settings["package_path"]

0 commit comments

Comments
 (0)