jobs var
This commit is contained in:
parent
7baed40c0f
commit
08689a36eb
@ -1,5 +1,4 @@
|
|||||||
function f_ccxt {
|
function f_ccxt {
|
||||||
|
|
||||||
if [ -s /dabo/.${STOCK_EXCHANGE}-secrets ]
|
if [ -s /dabo/.${STOCK_EXCHANGE}-secrets ]
|
||||||
then
|
then
|
||||||
. /dabo/.${STOCK_EXCHANGE}-secrets
|
. /dabo/.${STOCK_EXCHANGE}-secrets
|
||||||
@ -11,7 +10,9 @@ function f_ccxt {
|
|||||||
# Initialize ccxt in python
|
# Initialize ccxt in python
|
||||||
if [ -z "$g_python_running" ] || [ -z "$f_ccxt_initialized" ]
|
if [ -z "$g_python_running" ] || [ -z "$f_ccxt_initialized" ]
|
||||||
then
|
then
|
||||||
|
set -x
|
||||||
g_python 'import os' || return 1
|
g_python 'import os' || return 1
|
||||||
|
set +x
|
||||||
g_python 'import sys' || return 1
|
g_python 'import sys' || return 1
|
||||||
|
|
||||||
g_python 'sys.path.append("/ccxt/python")' || return 1
|
g_python 'sys.path.append("/ccxt/python")' || return 1
|
||||||
@ -28,5 +29,4 @@ function f_ccxt {
|
|||||||
g_python "$@" || return 1
|
g_python "$@" || return 1
|
||||||
unset f_ccxt_result
|
unset f_ccxt_result
|
||||||
f_ccxt_result=${g_python_result[*]}
|
f_ccxt_result=${g_python_result[*]}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user