Skip to content

Commit

Permalink
Add rose dir to path when running driver outside a container
Browse files Browse the repository at this point in the history
Signed-off-by: yzamir <[email protected]>
  • Loading branch information
yaacov committed Sep 12, 2023
1 parent 327c5b7 commit 1927f31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rose/client/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
IMAGE_NAME ?= quay.io/rose/rose-client
DRIVER_PATH ?= ./mydriver.py
PORT ?= 8081
ROSE_DIR = ../..

# By default, run both linting and tests
all: lint test
Expand All @@ -27,7 +28,7 @@ test:

run:
@echo "Running driver logic server ..."
python main.py --port $(PORT) --driver $(DRIVER_PATH)
PYTHONPATH=$(ROSE_DIR):$$PYTHONPATH python main.py --port $(PORT) --driver $(DRIVER_PATH)

build-image:
@echo "Building container image ..."
Expand Down

0 comments on commit 1927f31

Please sign in to comment.