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 57
57
from . import atmdata
58
58
from . import ISODISTORT as ISO
59
59
from . import SUBGROUPS
60
+ from pathlib import Path
60
61
61
62
try:
62
63
wx.NewIdRef
@@ -6260,6 +6261,15 @@ def RunRMCProfile(event):
6260
6261
f.write(f' do script "bash {script_file}" in window 1\n')
6261
6262
f.write("end tell\n")
6262
6263
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])
6263
6273
else:
6264
6274
script_file = os.path.join(os.getcwd(), "runrmc.bat")
6265
6275
with open(script_file,'w') as batch:
You can’t perform that action at this time.
0 commit comments