Skip to content

Commit

Permalink
fix: fixed aw-watcher-window-macos binary path when bundled as .app
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Sep 26, 2022
1 parent 88b50eb commit 1287e96
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions aw_watcher_window/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import logging
import sys
import os
import subprocess
from time import sleep
from datetime import datetime, timezone

Expand Down Expand Up @@ -55,12 +56,15 @@ def main():
with client:
if args.strategy == "swift":
logger.info("Using swift strategy, calling out to swift binary")
import subprocess

binpath = os.path.join(
os.path.dirname(os.path.realpath(__file__)), "aw-watcher-window-macos"
)

# TODO: pass config to swift code
subprocess.call(
[
"./aw-watcher-window-macos",
binpath,
client.server_address,
bucket_id,
client.client_hostname,
Expand Down

0 comments on commit 1287e96

Please sign in to comment.