Permalink
Browse files

Fix execution of bash add-ons.

Also added a section on installation with both the shell script and pip.
  • Loading branch information...
1 parent 0e76cc9 commit 56a53c72920c15e196d9a91302bdee2acbe6b44c @sigmavirus24 committed May 26, 2012
Showing with 35 additions and 2 deletions.
  1. +34 −0 README.rst
  2. +1 −2 todo.py
View
@@ -20,6 +20,40 @@ colorama for 'termcolor' support.
.. _GitPython: https://github.com/gitpython-developers/GitPython
+Installation
+------------
+
+From the repo
+`````````````
+If you want to install the copy locally (i.e. to a personal directory) you can
+simply download one of the packages_ and run the ``install.sh`` script.
+
+.. _packages: https://github.com/sigmavirus24/Todo.txt-python/downloads
+
+Be sure to run ``./install.sh -h`` first. You can decide where you would like
+the script installed (the default is ``$HOME/bin/``) and where you would like an
+alias for the script, e.g., ``t`` or ``tpy``, written (the default is
+``$HOME/.bashrc``).
+
+Using pypi
+``````````
+
+If you would prefer a system-wide installation, you can use install ``todo.py``
+from PyPi like so:
+
+::
+
+ $ pip install todo.py
+
+Be aware that making a system-wide installation will not automattically create
+an alias for your use. You will have to edit either your ``.bashrc`` or
+``.bash_profile`` (or respective shell configuration filse) to include something
+along the lines of:
+
+::
+
+ alias t='$HOME/bin/todo.py'
+
Hacking
-------
View
@@ -23,7 +23,6 @@
import sys
from optparse import OptionParser
from datetime import datetime, date
-from subprocess import Popen
VERSION = "development"
REVISION = "$Id$"
@@ -1105,7 +1104,7 @@ def opt_setup():
if os.path.exists(actions_dir) and arg in os.listdir(actions_dir):
arg = concat([actions_dir, arg], '/')
args.insert(0, arg)
- Popen(args)
+ os.system(concat(args, " "))
args = None
elif arg in commandsl:
if not commands[arg][0]:

0 comments on commit 56a53c7

Please sign in to comment.