diff --git a/ckanext/bulkupload/scripts/bulk_upload_xcaret.py b/ckanext/bulkupload/scripts/bulk_upload_xcaret.py index bcabbaa..3c9543f 100755 --- a/ckanext/bulkupload/scripts/bulk_upload_xcaret.py +++ b/ckanext/bulkupload/scripts/bulk_upload_xcaret.py @@ -2,12 +2,13 @@ import requests import ssl from os import walk +import os import configparser ssl.match_hostname = lambda cert, hostname: True imported_vars = configparser.RawConfigParser() -imported_vars.read('/home/blagoja/Projects/CKAN/2.9-test/scripts/config.ini') +imported_vars.read(os.path.join(os.path.dirname(__file__), 'config.ini')) folder_path = imported_vars.get('my_vars', "FOLDER_PATH") api_token = imported_vars.get('my_vars', "API_TOKEN")