Skip to content

Commit 1c1b9f4

Browse files
committed
Add DF_PYTHON3_PATH env variable
Add DF_PYTHON3_PATH env variable
1 parent 089b4eb commit 1c1b9f4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.env-dist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ APP_KEY=
216216
#DF_NODEJS_PATH=/usr/local/bin/node
217217
## path to the installed python executable
218218
#DF_PYTHON_PATH=/usr/local/bin/python
219+
## path to the installed python3 executable
220+
#DF_PYTHON3_PATH=/usr/local/bin/python3
219221
## protocol to use for Node.js and Python when making internal calls back to DreamFactory, http or https
220222
#DF_SCRIPTING_DEFAULT_PROTOCOL=http
221223
## Characters limit for script to run inline. When this limit exceeds script will be written in file and executed.

installer.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ declare -A settings=(
119119
["DF_SCRIPTING_DISABLE"]=""
120120
["DF_NODEJS_PATH"]="/usr/local/bin/node"
121121
["DF_PYTHON_PATH"]="/usr/local/bin/python"
122+
["DF_PYTHON3_PATH"]="/usr/local/bin/python3"
122123
# API
123124
["DF_API_ROUTE_PREFIX"]="api"
124125
["DF_STATUS_ROUTE_PREFIX"]=""
@@ -234,6 +235,7 @@ declare -A settings_msg=(
234235
["DF_SCRIPTING_DISABLE"]="To disable all server-side scripting set this to 'all', or comma-delimited list of v8js, nodejs, python, and/or php to disable individually."
235236
["DF_NODEJS_PATH"]="The system will try to detect the executable path, but in some environments it is best to set the path to the installed Node.js executable."
236237
["DF_PYTHON_PATH"]="The system will try to detect the executable path, but in some environments it is best to set the path to the installed Python executable"
238+
["DF_PYTHON3_PATH"]="The system will try to detect the executable path, but in some environments it is best to set the path to the installed Python3 executable"
237239
# API
238240
["DF_API_ROUTE_PREFIX"]="By default, API calls take the form of http://<server_name>/<api_route_prefix>/v<version_number>"
239241
["DF_STATUS_ROUTE_PREFIX"]="By default, API calls take the form of http://<server_name>/[<status_route_prefix>/]status"
@@ -1082,6 +1084,7 @@ case $action in
10821084
menu_items=("DF_SCRIPTING_DISABLE")
10831085
[[ "${chosen_features[nodejs]}" ]] && menu_items=("${menu_items[@]}" "DF_NODEJS_PATH")
10841086
[[ "${chosen_features[python]}" ]] && menu_items=("${menu_items[@]}" "DF_PYTHON_PATH")
1087+
[[ "${chosen_features[python3]}" ]] && menu_items=("${menu_items[@]}" "DF_PYTHON_PATH3")
10851088
settings_menu_handle "Server-side Scripting Settings"
10861089
;;
10871090

0 commit comments

Comments
 (0)