Skip to content

Commit

Permalink
use the current script path
Browse files Browse the repository at this point in the history
  • Loading branch information
ytbryan committed Sep 18, 2024
1 parent a1e80fb commit b933a43
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 65 deletions.
3 changes: 2 additions & 1 deletion cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ def s():
setup()

# Load the configuration
script_path = os.getenv('CLI_PATH', '')

script_path = os.path.dirname(os.path.realpath(__file__))
with open(f"{script_path}/config.yml", "r") as config_file:
config = yaml.safe_load(config_file)

Expand Down
64 changes: 0 additions & 64 deletions main.py

This file was deleted.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ python = ">=3.8"

[tool.poetry.group.dev.dependencies]
typer = "^0.12.5"
PyYAML

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit b933a43

Please sign in to comment.