mirror of https://github.com/BURAI-team/burai.git
rename directory exec -> exec.WIN
This commit is contained in:
parent
8c28a7a8c2
commit
6d76824542
|
@ -0,0 +1 @@
|
|||
|
|
@ -139,20 +139,22 @@ public class QEFXMain extends Application {
|
|||
}
|
||||
|
||||
private void setBinaryPath() {
|
||||
if (!Environments.isWindows()) {
|
||||
return;
|
||||
File dirFile = null;
|
||||
if (Environments.isWindows()) {
|
||||
dirFile = new File("exec.WIN");
|
||||
} else if (Environments.isMac()) {
|
||||
dirFile = new File("exec.MAC");
|
||||
}
|
||||
|
||||
File dirFile = new File("exec");
|
||||
|
||||
String qePath = QEPath.getPath();
|
||||
if (qePath == null || qePath.trim().isEmpty()) {
|
||||
QEPath.setPath(new File(dirFile, "qe"));
|
||||
}
|
||||
|
||||
String mpiPath = QEPath.getMPIPath();
|
||||
if (mpiPath == null || mpiPath.trim().isEmpty()) {
|
||||
QEPath.setMPIPath(new File(dirFile, "mpi"));
|
||||
if (dirFile != null) {
|
||||
String qePath = QEPath.getPath();
|
||||
if (qePath == null || qePath.trim().isEmpty()) {
|
||||
QEPath.setPath(new File(dirFile, "qe"));
|
||||
}
|
||||
String mpiPath = QEPath.getMPIPath();
|
||||
if (mpiPath == null || mpiPath.trim().isEmpty()) {
|
||||
QEPath.setMPIPath(new File(dirFile, "mpi"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue