From 213a6ead1afd25fb7a424bb73dca5d0a4e73e67f Mon Sep 17 00:00:00 2001 From: Davte Date: Thu, 28 Mar 2019 14:19:06 +0100 Subject: [PATCH] Look for configuration file in script folder, not in working directory --- davtelepot/__init__.py | 2 +- update_package.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/davtelepot/__init__.py b/davtelepot/__init__.py index f9d24c9..905576f 100644 --- a/davtelepot/__init__.py +++ b/davtelepot/__init__.py @@ -7,7 +7,7 @@ __author__ = "Davide Testa" __email__ = "davte@libero.it" __credits__ = "Marco Origlia" __license__ = "GNU General Public License v3.0" -__version__ = "1.4.23" +__version__ = "1.4.24" __maintainer__ = "Davide Testa" __contact__ = "t.me/davte" diff --git a/update_package.sh b/update_package.sh index edef141..9edc057 100644 --- a/update_package.sh +++ b/update_package.sh @@ -1,7 +1,11 @@ #!/bin/bash +# Get current directory +this_script_directory=$(cd `dirname $0` && pwd) + # Python virtual environment directory: packenv variable in my_config.sh -source my_config.sh; +source $this_script_directory/my_config.sh; + # Ensure the success of importing procedure if [ -z ${packenv} ]; then