File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 5757from . import atmdata
5858from . import ISODISTORT as ISO
5959from . import SUBGROUPS
60+ from pathlib import Path
6061
6162try:
6263 wx.NewIdRef
@@ -6260,6 +6261,15 @@ def RunRMCProfile(event):
62606261 f.write(f' do script "bash {script_file}" in window 1\n')
62616262 f.write("end tell\n")
62626263 subp.Popen(['osascript', ascript_file])
6264+ elif sys.platform.startswith("linux"):
6265+ script_file = os.path.join(os.getcwd(), "runrmc.sh")
6266+ with open(script_file, 'w') as frmc:
6267+ frmc.write("#!/bin/bash\n")
6268+ frmc.write(f"export LD_LIBRARY_PATH={Path(rmcfile).parent.parent}/exe/libs\n")
6269+ frmc.write(f"export LIBRARY_PATH={Path(rmcfile).parent.parent}/exe/libs\n")
6270+ frmc.write(f"export PATH=$PATH:{Path(rmcfile).parent.parent}/exe\n")
6271+ frmc.write(f'"rmcprofile" "{pName}"\n')
6272+ subp.Popen(['bash', script_file])
62636273 else:
62646274 script_file = os.path.join(os.getcwd(), "runrmc.bat")
62656275 with open(script_file,'w') as batch:
You can’t perform that action at this time.
0 commit comments