aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorGravatar Jon Bernard <jbernard@tuxion.com> 2015-12-30 06:51:15 -0500
committerGravatar Jon Bernard <jbernard@tuxion.com> 2015-12-30 07:30:06 -0500
commit6a58a9d3437149878a95813ab3c8de349744b9d9 (patch)
tree2a8056f62f0154f882eb1af987178b6f17be138c /bin
parent4a7d81b333740b7944279e192b99d46bf109fbb0 (diff)
downloaddotfiles-6a58a9d3437149878a95813ab3c8de349744b9d9.tar.gz
dotfiles-6a58a9d3437149878a95813ab3c8de349744b9d9.tar.bz2
dotfiles-6a58a9d3437149878a95813ab3c8de349744b9d9.zip
Remove bin script
From what I've been reading, this approach has several limitations and since I use pip I've never really used it, even during development. I always use virtualenvs where the package and its entry point are installed with setuptools, so an explicit bin script seems like a relic of the past. I'll revisit this if people disagree.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dotfiles18
1 files changed, 0 insertions, 18 deletions
diff --git a/bin/dotfiles b/bin/dotfiles
deleted file mode 100755
index 774d6a0..0000000
--- a/bin/dotfiles
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/env python
-
-import os
-import sys
-
-
-# Add project root directory (enable symlink, and trunk execution).
-PROJECT_ROOT_DIRECTORY = os.path.abspath(
- os.path.dirname(os.path.dirname(os.path.realpath(sys.argv[0]))))
-
-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)
- os.putenv('PYTHONPATH', PROJECT_ROOT_DIRECTORY)
-
-if __name__ == '__main__':
- from dotfiles.cli import main
- main()