Skip to content

Commit

Permalink
Get rid of unnecessary EBMBOT_PATH setting, which was breaking things…
Browse files Browse the repository at this point in the history
… in docker anyway
  • Loading branch information
rebkwok committed Dec 15, 2023
1 parent 906788e commit 0b2b8d2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ WORKDIR /app

# This may not be necessary, but it probably doesn't hurt
ENV PYTHONPATH=/app

ENV PATH=$PATH:/app

##################################################
#
Expand Down
2 changes: 1 addition & 1 deletion ebmbot/dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def run_command(self):
stderr=stderr,
env={
"EBMBOT_CALLBACK_URL": self.callback_url,
"PATH": settings.EBMBOT_PATH or os.environ["PATH"],
"PATH": os.environ["PATH"],
},
shell=True,
)
Expand Down
2 changes: 0 additions & 2 deletions ebmbot/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
env.read_env()

APPLICATION_ROOT = Path(__file__).resolve().parent.parent
# If running in docker, this is /app/
EBMBOT_PATH = env.str("EBMBOT_PATH", default=APPLICATION_ROOT)

DB_PATH = env.path("DB_PATH", default=APPLICATION_ROOT / "ebmbot.db")
WORKSPACE_DIR = env.path("WORKSPACE_DIR", default=APPLICATION_ROOT / "workspace")
Expand Down

0 comments on commit 0b2b8d2

Please sign in to comment.