diff --git a/common_config/__init__.py b/common_config/__init__.py index 921aa11f6b66c93a60d49ebeb7cf1f5a75e4abd7..bd60c8f53e646df8f3345b3ea72ee2204d5d04ad 100644 --- a/common_config/__init__.py +++ b/common_config/__init__.py @@ -1,2 +1,2 @@ -__version__ = '0.1.8' +__version__ = '0.1.9' from common_config.common import * \ No newline at end of file diff --git a/common_config/common.py b/common_config/common.py index 80c8d869fc45433b7c1a8538219d742220309b05..3a79864f080bbd27e89233b4de277e1795ad776b 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"{__file__}" + script_path = f"{os.path.basename(__main__.__file__)}" 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 c3040e26e5eb5c63f93486adc1b8872abd2d7f30..091f629cd04568c32242b542a78e49f32e37e056 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "common-config" -version = "0.1.8" +version = "0.1.9" description = "A config library for eigenservice" authors = ["David Huss <dh@atoav.com>"]