Skip to content
Snippets Groups Projects
Commit 060889e8 authored by David Huss's avatar David Huss :speech_balloon:
Browse files

Try priviledge escalation

parent 14ef5d74
No related branches found
No related tags found
No related merge requests found
__version__ = '0.1.8'
__version__ = '0.1.9'
from common_config.common import *
\ No newline at end of file
......@@ -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)
......
[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>"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment