Look for configuration file in script folder, not in working directory

This commit is contained in:
Davte 2019-03-28 14:19:06 +01:00
parent 10cc0bbb2d
commit 213a6ead1a
2 changed files with 6 additions and 2 deletions

View File

@ -7,7 +7,7 @@ __author__ = "Davide Testa"
__email__ = "davte@libero.it" __email__ = "davte@libero.it"
__credits__ = "Marco Origlia" __credits__ = "Marco Origlia"
__license__ = "GNU General Public License v3.0" __license__ = "GNU General Public License v3.0"
__version__ = "1.4.23" __version__ = "1.4.24"
__maintainer__ = "Davide Testa" __maintainer__ = "Davide Testa"
__contact__ = "t.me/davte" __contact__ = "t.me/davte"

View File

@ -1,7 +1,11 @@
#!/bin/bash #!/bin/bash
# Get current directory
this_script_directory=$(cd `dirname $0` && pwd)
# Python virtual environment directory: packenv variable in my_config.sh # 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 # Ensure the success of importing procedure
if [ -z ${packenv} ]; if [ -z ${packenv} ];
then then