11using .. 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
44using Preferences: @set_preferences! , @load_preference , @delete_preferences!
55
@@ -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)
6362end
6463
6564function load_pypreferences_code ()
0 commit comments