Skip to content

Commit

Permalink
renew all environment paths
Browse files Browse the repository at this point in the history
  • Loading branch information
endixk committed Jan 2, 2023
1 parent f6ee164 commit ede0b90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/envs/config/PathConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ public class PathConfig {
public static int setEnvironmentPath(String path) {
if(path.charAt(path.length() - 1) != File.separatorChar) path += File.separatorChar;
EnvironmentPath = path;
if(renewModelPath() > 0 && renewSeqPath() > 0 && renewAugustusConfig() > 0) return 1;
boolean renew = renewModelPath() > 0;
renew &= renewSeqPath() > 0;
renew &= renewAugustusConfig() > 0;
if(renew) return 1;
EnvironmentPathSet = true;
return 0;
}
Expand Down

0 comments on commit ede0b90

Please sign in to comment.