Skip to content

Commit 71083f2

Browse files
committed
more RETICULATE_PYTHON cleanup
1 parent 40e707d commit 71083f2

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,7 @@ specified package list.
220220

221221
If there is no `requirements.txt` file or the `--force-generate` option is specified,
222222
the package dependencies will be determined from the current Python environment, or
223-
from an alternative Python executable specified via the `--python` option or via the
224-
`RETICULATE_PYTHON` environment variable:
223+
from an alternative Python executable specified via the `--python` option:
225224

226225
```bash
227226
rsconnect deploy notebook --python /path/to/python my-notebook.ipynb

rsconnect/actions.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ def which_python(python, env=os.environ):
113113
114114
In priority order:
115115
* --python specified on the command line
116-
* RETICULATE_PYTHON defined in the environment
117116
* the python binary running this script
118117
"""
119118
warn("This method has been moved and will be deprecated.", DeprecationWarning, stacklevel=2)
@@ -122,9 +121,6 @@ def which_python(python, env=os.environ):
122121
raise RSConnectException('The file, "%s", does not exist or is not executable.' % python)
123122
return python
124123

125-
if "RETICULATE_PYTHON" in env:
126-
return os.path.expanduser(env["RETICULATE_PYTHON"])
127-
128124
return sys.executable
129125

130126

0 commit comments

Comments
 (0)