Skip to content

Commit 1d8f3e2

Browse files
committed
revert changes
1 parent 23bcabe commit 1d8f3e2

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

PyPreferences.jl/src/core.jl

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function set(prefs::PythonPreferences)
2323
if prefs.python === nothing
2424
@delete_preferences!("python")
2525
else
26-
@set_preferences!("python" => get_python_fullpath(prefs.python))
26+
@set_preferences!("python" => prefs.python)
2727
end
2828
if prefs.inprocess
2929
@set_preferences!("inprocess" => prefs.inprocess)
@@ -53,13 +53,12 @@ function _load_python_preferences()
5353
#isempty(rawprefs) && return nothing
5454

5555
# default value
56-
if !_inprocess && !_conda && _python === nothing
57-
_python = get_python_fullpath(get_default_python())
58-
@info "Setting default Python interpreter to $(_python)"
59-
return set(python=_python)
60-
else
61-
return PythonPreferences(_python, _inprocess, _conda)
62-
end
56+
# if !_inprocess && !_conda && _python === nothing
57+
# _python = get_python_fullpath(get_default_python())
58+
# @info "Setting default Python interpreter to $(_python)"
59+
# return set(python=_python)
60+
# end
61+
return PythonPreferences(_python, _inprocess, _conda)
6362
end
6463

6564
function load_pypreferences_code()

0 commit comments

Comments
 (0)