From 3752c90c2328430867cd959eb61ba3402b805ca3 Mon Sep 17 00:00:00 2001 From: blagoja Date: Wed, 17 Apr 2024 09:19:24 +0200 Subject: [PATCH] Change the config path --- ckanext/bulkupload/scripts/bulk_upload_xcaret.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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")