Skip to content

Commit

Permalink
GHI-#12 Implement the main executeable binary "bin/snowsaw"
Browse files Browse the repository at this point in the history
  • Loading branch information
arcticicestudio committed Jan 7, 2017
1 parent 37bbe62 commit 921605e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
21 changes: 21 additions & 0 deletions bin/snowsaw
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env python

import sys
import os

PROJECT_ROOT_DIRECTORY = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))

if os.path.exists(os.path.join(PROJECT_ROOT_DIRECTORY, 'snowsaw')):
if PROJECT_ROOT_DIRECTORY not in sys.path:
sys.path.insert(0, PROJECT_ROOT_DIRECTORY)
os.putenv('PYTHONPATH', PROJECT_ROOT_DIRECTORY)

import snowsaw


def main():
snowsaw.cli.main()


if __name__ == '__main__':
main()
2 changes: 2 additions & 0 deletions snowsaw/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .cli import main
from .plugin import Plugin

0 comments on commit 921605e

Please sign in to comment.