-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d986025
commit f30824f
Showing
2 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
# __main__.py | ||
import sys | ||
from pathlib import Path | ||
import argparse | ||
|
||
base_package_path = Path(__file__).parent.parent | ||
print(f"adding base_package_path: {base_package_path} : to sys.path") | ||
sys.path.insert(0, str(base_package_path)) # add parent directory to sys.path | ||
|
||
from gui.skelly_synchronize_gui import main | ||
def parse_args(): | ||
parser = argparse.ArgumentParser(description="Skelly Synchronize") | ||
return parser.parse_args() | ||
|
||
if __name__ == "__main__": | ||
def run(): | ||
parse_args() | ||
|
||
from gui.skelly_synchronize_gui import main | ||
main() | ||
|
||
|
||
if __name__ == "__main__": | ||
run() |