Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix/update user config path #3

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down Expand Up @@ -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"
Expand Down
10 changes: 2 additions & 8 deletions run.sh
Original file line number Diff line number Diff line change
@@ -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