Skip to content

Commit d44f98b

Browse files
committed
minor
1 parent 21c909a commit d44f98b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/content.zh/docs/dev/python/dependency_management.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ It supports to specify the path of the Python interpreter to execute Python work
237237
You could specify the Python interpreter inside the code using Python Table API as following:
238238

239239
```python
240-
table_env.set_python_executable("/path/to/python")
240+
table_env.get_config().set_python_executable("/path/to/python")
241241
```
242242

243243
or using Python DataStream API as following:
@@ -251,7 +251,7 @@ It also supports to use the Python interpreter inside an archive file.
251251
```python
252252
# Python Table API
253253
table_env.add_python_archive("/path/to/py_env.zip", "venv")
254-
table_env.set_python_executable("venv/py_env/bin/python")
254+
table_env.get_config().set_python_executable("venv/py_env/bin/python")
255255

256256
# Python DataStream API
257257
stream_execution_environment.add_python_archive("/path/to/py_env.zip", "venv")

docs/content/docs/dev/python/dependency_management.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ It supports to specify the path of the Python interpreter to execute Python work
237237
You could specify the Python interpreter inside the code using Python Table API as following:
238238

239239
```python
240-
table_env.set_python_executable("/path/to/python")
240+
table_env.get_config().set_python_executable("/path/to/python")
241241
```
242242

243243
or using Python DataStream API as following:
@@ -251,7 +251,7 @@ It also supports to use the Python interpreter inside an archive file.
251251
```python
252252
# Python Table API
253253
table_env.add_python_archive("/path/to/py_env.zip", "venv")
254-
table_env.set_python_executable("venv/py_env/bin/python")
254+
table_env.get_config().set_python_executable("venv/py_env/bin/python")
255255

256256
# Python DataStream API
257257
stream_execution_environment.add_python_archive("/path/to/py_env.zip", "venv")

0 commit comments

Comments
 (0)