Skip to content

Commit

Permalink
Merge pull request #29 from rickythefox/fix_pycharm_consle_crash
Browse files Browse the repository at this point in the history
Fix crash when starting python console in PyCharm
  • Loading branch information
Fapiko authored Jul 3, 2023
2 parents be33b08 + 2d6c034 commit b7aec4a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ public class PycharmEnvironmentProvider implements PythonCommandLineTargetEnviro

@Override
public void extendTargetEnvironment(@NotNull Project project, @NotNull HelpersAwareTargetEnvironmentRequest helpersAwareTargetEnvironmentRequest, @NotNull PythonExecution pythonExecution, @NotNull PythonRunParams pythonRunParams) {
if (!(pythonRunParams instanceof AbstractPythonRunConfiguration)) {
return;
}
AbstractPythonRunConfiguration<?> runConfig = (AbstractPythonRunConfiguration<?>) pythonRunParams;
DirenvSettings direnvSettings = runConfig.getCopyableUserData(RunConfigSettingsEditor.USER_DATA_KEY);
Map<String, String> direnvVariables = RunConfigSettingsEditor.collectEnv(direnvSettings, pythonRunParams.getWorkingDirectory());
Expand Down

0 comments on commit b7aec4a

Please sign in to comment.