mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-29 07:56:06 +08:00
支持运行pyc格式文件
This commit is contained in:
parent
96b111b894
commit
5d85673767
|
@ -10,7 +10,7 @@ define_program() {
|
||||||
local first_param=$1
|
local first_param=$1
|
||||||
if [[ $first_param == *.js ]]; then
|
if [[ $first_param == *.js ]]; then
|
||||||
which_program="node"
|
which_program="node"
|
||||||
elif [[ $first_param == *.py ]]; then
|
elif [[ $first_param == *.py ]] || [[ $first_param == *.pyc ]]; then
|
||||||
which_program="python3"
|
which_program="python3"
|
||||||
elif [[ $first_param == *.sh ]]; then
|
elif [[ $first_param == *.sh ]]; then
|
||||||
which_program="bash"
|
which_program="bash"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user