diff --git a/kfk/constants.py b/kfk/constants.py index 6d4dc77..152f122 100644 --- a/kfk/constants.py +++ b/kfk/constants.py @@ -2,8 +2,10 @@ import sys import os +from pathlib import Path + BASE_FOLDER = ".strimzi-kafka-cli" -BASE_PATH = (os.environ.get('HOME') + "/" + BASE_FOLDER) if os.environ.get( +BASE_PATH = (str(Path.home()) + "/" + BASE_FOLDER) if os.environ.get( 'STRIMZI_KAFKA_CLI_BASE_PATH') is None else os.environ.get('STRIMZI_KAFKA_CLI_BASE_PATH') STRIMZI_VERSION = "0.18.0" if os.environ.get('STRIMZI_KAFKA_CLI_STRIMZI_VERSION') is None else os.environ.get('STRIMZI_KAFKA_CLI_STRIMZI_VERSION') STRIMZI_PATH = (BASE_PATH + "/strimzi-{version}".format(version=STRIMZI_VERSION)) if os.environ.get(