Skip to content

Commit 23bcabe

Browse files
committed
fix conda
1 parent cf48508 commit 23bcabe

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

PyPreferences.jl/src/core.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using ..PyPreferences: PyPreferences
2-
using .PythonUtils: find_libpython, python_version_of, pythonhome_of
2+
using .PythonUtils: find_libpython, python_version_of, pythonhome_of, conda_python_fullpath
33

44
using Preferences: @set_preferences!, @load_preference, @delete_preferences!
55

PyPreferences.jl/src/python_utils.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ using Libdl: Libdl
22
using VersionParsing: vparse
33
using Conda: Conda
44

5+
conda_python_fullpath() =
6+
abspath(Conda.PYTHONDIR, "python" * (Sys.iswindows() ? ".exe" : ""))
7+
58
# Fix the environment for running `python`, and setts IO encoding to UTF-8.
69
# If cmd is the Conda python, then additionally removes all PYTHON* and
710
# CONDA* environment variables.

0 commit comments

Comments
 (0)