environment.putAll(getParentEnvironment());
}
+ if (SystemInfo.isUnix) {
+ File workDirectory = getWorkDirectory();
+ if (workDirectory != null) {
+ environment.put("PWD", FileUtil.toSystemDependentName(workDirectory.getAbsolutePath()));
+ }
+ }
+
if (!myEnvParams.isEmpty()) {
if (SystemInfo.isWindows) {
THashMap<String, String> envVars = new THashMap<>(CaseInsensitiveStringHashingStrategy.INSTANCE);
environment.putAll(myEnvParams);
}
}
-
- if (SystemInfo.isUnix) {
- File workDirectory = getWorkDirectory();
- if (workDirectory != null) {
- environment.put("PWD", FileUtil.toSystemDependentName(workDirectory.getAbsolutePath()));
- }
- }
}
/**