diff --git a/main.py b/main.py index 778ca5f..0744baf 100644 --- a/main.py +++ b/main.py @@ -7,7 +7,7 @@ class RingRunner: def __init__(self): self.client_config = ClientConfig.load( - os.path.expanduser("~/.syftbox/client_config.json") + os.getenv("SYFTBOX_CLIENT_CONFIG_PATH", None) ) self.my_email = self.client_config["email"] self.my_home = ( @@ -77,7 +77,7 @@ def data_writer(self, file_name, result): def send_to_new_person(self, to_send_email, datum): output_path = ( - Path(os.path.abspath(__file__)).parent.parent.parent + Path(self.client_config['sync_folder']) / to_send_email / "app_pipelines" / "ring" diff --git a/run.sh b/run.sh index 6b403cb..e1643d0 100755 --- a/run.sh +++ b/run.sh @@ -1,10 +1,4 @@ #!/bin/sh -if [ ! -d ".venv" ]; then - echo "Virtual environment not found. Creating one..." - uv venv .venv - echo "Virtual environment created successfully." -else - echo "Virtual environment already exists." -fi -uv pip install http://20.168.10.234:8080/wheel/syftbox-0.1.0-py3-none-any.whl +uv venv --allow-existing +uv pip install --upgrade syftbox uv run python main.py