mirror of
https://github.com/taosdata/TDengine
synced 2026-05-24 10:09:01 +00:00
commit 0c81e3c0ba89c86f6d17d51d5056146e177cace5
Author: Huo Linhe <linhehuo@gmail.com>
Date: Fri May 14 10:27:13 2021 +0800
[TD-4160]<fix>: remove python connector soft links, fix tests and documents
commit f439fce413423e7d7c97eef180c93d63dedab32e
Author: Huo Linhe <linhehuo@gmail.com>
Date: Wed May 12 18:50:53 2021 +0800
[TD-182]: bump python connector version to v2.0.10 (#6091)
Also fix url error in setup.py
commit 4ae55d494a262e482f6b34e8bf193cc6af62a886
Author: Huo Linhe <linhehuo@gmail.com>
Date: Wed May 12 09:49:26 2021 +0800
[TD-4370]<fix>: merge python connector changes to master
Inludes:
[TD-182]<enhance>: use single repo for python connector (#6036)
* [TD-182]<enhance>: use single repo for python connector
Remove code for each platform and build up one single python code base
for windows/osx/linux platforms and python2/python3 runtime.
* [TD-182]<enhance>: remove redundant code in python connector
* [TD-4149] <fix>: fix python connection config error
23 lines
632 B
Bash
Executable file
23 lines
632 B
Bash
Executable file
EXEC_DIR=`dirname "$0"`
|
|
if [[ $EXEC_DIR != "." ]]
|
|
then
|
|
echo "ERROR: Please execute `basename "$0"` in its own directory (for now anyway, pardon the dust)"
|
|
exit -1
|
|
fi
|
|
CURR_DIR=`pwd`
|
|
IN_TDINTERNAL="community"
|
|
if [[ "$CURR_DIR" == *"$IN_TDINTERNAL"* ]]; then
|
|
TAOS_DIR=$CURR_DIR/../../..
|
|
else
|
|
TAOS_DIR=$CURR_DIR/../..
|
|
fi
|
|
TAOSD_DIR=`find $TAOS_DIR -name "taosd"|grep bin|head -n1`
|
|
LIB_DIR=`echo $TAOSD_DIR|rev|cut -d '/' -f 3,4,5,6|rev`/lib
|
|
export PYTHONPATH=$(pwd)/../../src/connector/python
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LIB_DIR
|
|
|
|
if [[ "$1" == *"test.py"* ]]; then
|
|
python3 ./test.py $@
|
|
else
|
|
python3 $1 $@
|
|
fi
|