Skip to content

Commit

Permalink
Merge pull request conda#10000 from cjmartian/colorama-fix
Browse files Browse the repository at this point in the history
colorama fix
  • Loading branch information
cjmartian authored Jun 12, 2020
2 parents bf3404a + 04e55ec commit fb127b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conda/activate.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,9 @@ def index_of_path(paths, test_path):
def _build_activate_shell_custom(self, export_vars):
# A method that can be overriden by shell-specific implementations.
# The signature of this method may change in the future.
if on_win:
import ctypes
export_vars.update({"PYTHONIOENCODING": ctypes.cdll.kernel32.GetACP(),})
pass

def _update_prompt(self, set_vars, conda_prompt_modifier):
Expand Down
1 change: 1 addition & 0 deletions conda/shell/condabin/_conda_activate.bat
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@
@IF "%CONDA_TEST_SAVE_TEMPS%x"=="x" @DEL /F /Q "%_TEMP_SCRIPT_PATH%"
@SET _TEMP_SCRIPT_PATH=
@SET "PROMPT=%CONDA_PROMPT_MODIFIER%%PROMPT%"
@IF DEFINED PYTHONIOENCODING chcp %PYTHONIOENCODING:~2% > NUL

0 comments on commit fb127b1

Please sign in to comment.