summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAnish Athalye <aathalye@me.com>2014-03-19 23:07:30 -0400
committerAnish Athalye <aathalye@me.com>2014-03-20 18:57:56 -0400
commit60a560e97699a1d9a4320b8e787a50b1a9a7734d (patch)
tree573ce63c2a49a278af49c0cc6542bfe3b89cf572 /bin
Initial commit
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dotbot19
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()