Skip to content

Commit

Permalink
Merge pull request #3 from IonesioJunior/hotfix/update_user_config_path
Browse files Browse the repository at this point in the history
Hotfix/update user config path
  • Loading branch information
IonesioJunior authored Oct 11, 2024
2 parents 5f5ead7 + e918805 commit 8534aed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
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

0 comments on commit 8534aed

Please sign in to comment.