aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitmodules6
-rwxr-xr-xbin/dotfiles21
m---------vendor/click0
m---------vendor/py0
4 files changed, 27 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..e46481c
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,6 @@
+[submodule "vendor/click"]
+ path = vendor/click
+ url = https://github.com/pallets/click
+[submodule "vendor/py"]
+ path = vendor/py
+ url = https://github.com/pytest-dev/py
diff --git a/bin/dotfiles b/bin/dotfiles
new file mode 100755
index 0000000..f2e5147
--- /dev/null
+++ b/bin/dotfiles
@@ -0,0 +1,21 @@
+#!/usr/bin/env python
+
+import os
+import sys
+
+
+PROJECT_ROOT_DIRECTORY = os.path.abspath(
+ os.path.dirname(os.path.dirname(os.path.realpath(sys.argv[0]))))
+PROJECT_VENDOR_DIRECTORY = os.path.join(PROJECT_ROOT_DIRECTORY, 'vendor')
+
+if (os.path.exists(os.path.join(PROJECT_ROOT_DIRECTORY, 'dotfiles'))
+ and PROJECT_ROOT_DIRECTORY not in sys.path):
+ sys.path.insert(0, PROJECT_ROOT_DIRECTORY)
+
+for vendor in os.listdir(PROJECT_VENDOR_DIRECTORY):
+ vendor = os.path.join(PROJECT_VENDOR_DIRECTORY, vendor)
+ sys.path.insert(0, vendor)
+
+if __name__ == '__main__':
+ from dotfiles.cli import cli
+ cli()
diff --git a/vendor/click b/vendor/click
new file mode 160000
+Subproject d3f36e884e18f374c3e4e6cf062ba19f100d0fd
diff --git a/vendor/py b/vendor/py
new file mode 160000
+Subproject 20fb546bc78866bd25b71624b3fd70421c3baee