diff --git a/scripts/start_dev_server.sh b/scripts/start_dev_server.sh index 8e1506d01a05c5e4134ca6957b517a058868e773..1a5dcb119ffba1602a7e07d298f8a51e8cbe0cad 100755 --- a/scripts/start_dev_server.sh +++ b/scripts/start_dev_server.sh @@ -1,6 +1,8 @@ #!/bin/bash set -ex +CURRENT_DIR=`pwd` + SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd $SCRIPT_DIR/../frontend @@ -8,5 +10,5 @@ cd $SCRIPT_DIR/../frontend export PYTHON_PATH=$PYTHON_PATH:"$SCRIPT_DIR/.." -cd $SCRIPT_DIR/../visualdl/server -python visualDL "$@" +cd $CURRENT_DIR +python ${SCRIPT_DIR}/../visualdl/server/visualDL "$@"