diff options
author | Anish Athalye <aathalye@me.com> | 2014-03-19 23:07:30 -0400 |
---|---|---|
committer | Anish Athalye <aathalye@me.com> | 2014-03-20 18:57:56 -0400 |
commit | 60a560e97699a1d9a4320b8e787a50b1a9a7734d (patch) | |
tree | 573ce63c2a49a278af49c0cc6542bfe3b89cf572 /bin |
Initial commit
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/dotbot | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/bin/dotbot b/bin/dotbot new file mode 100755 index 0000000..2c89bb0 --- /dev/null +++ b/bin/dotbot @@ -0,0 +1,19 @@ +#!/usr/bin/env python + +import sys, os + +PROJECT_ROOT_DIRECTORY = os.path.dirname( + os.path.dirname(os.path.realpath(__file__))) + +if os.path.exists(os.path.join(PROJECT_ROOT_DIRECTORY, 'dotbot')): + if PROJECT_ROOT_DIRECTORY not in sys.path: + sys.path.insert(0, PROJECT_ROOT_DIRECTORY) + os.putenv('PYTHONPATH', PROJECT_ROOT_DIRECTORY) + +import dotbot + +def main(): + dotbot.cli.main() + +if __name__ == '__main__': + main() |