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

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

No files matched your search

+5 -1
View File
@@ -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