diff --git a/common_config/__init__.py b/common_config/__init__.py index 8389fb75f7b34b79d09f898882422054b7957042..c01c06d117304799a05e26e53d0c4a0e00a66eef 100644 --- a/common_config/__init__.py +++ b/common_config/__init__.py @@ -1,2 +1,2 @@ -__version__ = '0.1.12' +__version__ = '0.1.13' from common_config.common import * \ No newline at end of file diff --git a/common_config/common.py b/common_config/common.py index 8c9b07fac7fad0835a46112199c106c45c0e8803..577bd960208611fb1481c146cc262b30a91afc87 100644 --- a/common_config/common.py +++ b/common_config/common.py @@ -425,7 +425,7 @@ def create_config(): config_path.write_text(DEFAULT_CONFIG) except PermissionError as e: python_path = f"{sys.prefix}/bin/python3" - script_path = f"{os.getcwd()}" + script_path = f"{inspect.stack()[0][1]}" print() print(f"Error: Didn't have the permissions to write the file to {config_path}", file=sys.stderr) print(f" Directory \"{selection['path']}\" belongs to user {selection['path'].owner()} (was running as user {getpass.getuser()})", file=sys.stderr) diff --git a/pyproject.toml b/pyproject.toml index 86cc2af9e19917e39971fe4f5139084674bbc13c..6690eaedeff627fe84a1680daa8692b945490d06 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "common-config" -version = "0.1.12" +version = "0.1.13" description = "A config library for eigenservice" authors = ["David Huss <dh@atoav.com>"]