Skip to content

Commit 54f2239

Browse files
committed
fix: Add python.path system property
1 parent 34c405a commit 54f2239

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

action.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,15 @@ runs:
144144
mkdir -p ~/.local/bin;
145145
case "${{ steps.find_installer.outputs.file_type }}" in
146146
class)
147-
jython_cmd="java -verbose -Dpython.home=${installation_path} -cp ${installation_path}/jython.jar org.python.util.jython \"\$@\""
147+
# cat installer/jython_template.unix_sh
148+
# #!/bin/sh
149+
# ###############################################################################
150+
# #
151+
# # This file generated by Jython installer
152+
# # Created on XXX by @user.name@
153+
#
154+
# "@jvm@" -Dpython.home="@location._top_@" -classpath "@location._top_@/jython.jar:$CLASSPATH" "@classname@" "$@"
155+
jython_cmd="java -verbose -Dpython.path=${installation_path} -Dpython.home=${installation_path} -cp ${installation_path}/jython.jar org.python.util.jython \"\$@\""
148156
;;
149157
150158
jar)
@@ -162,7 +170,7 @@ runs:
162170
run: |
163171
$installation_path = Convert-Path "${{ inputs.installation-path }}"
164172
if ("${{ steps.find_installer.outputs.file_type }}" -eq "class") {
165-
$jython_cmd = "java -Dpython.home=$installation_path -cp $installation_path\jython.jar org.python.util.jython %*"
173+
$jython_cmd = "java -Dpython.path=${installation_path} -Dpython.home=$installation_path -cp $installation_path\jython.jar org.python.util.jython %*"
166174
} else {
167175
$jython_cmd = "java -jar $installation_path\jython.jar %*"
168176
}
@@ -174,6 +182,7 @@ runs:
174182
if: runner.os != 'Windows'
175183
shell: bash
176184
run: echo ~/.local/bin >> $GITHUB_PATH
185+
177186
- name: Add to PATH (Windows)
178187
if: runner.os == 'Windows'
179188
shell: pwsh

0 commit comments

Comments
 (0)