aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMartin Vilcans <martin@librador.com>2011-11-06 00:39:47 +0100
committerMartin Vilcans <martin@librador.com>2011-11-06 00:39:47 +0100
commita7f8938b10877ff207688b3ff02f62c55e6c1266 (patch)
treefcf40a263e17cd9c514f4d6b1cbb1589ff93c259 /bin
parent502eacc1feff8f7a5d094fd7eb5af47906287137 (diff)
downloadscreenplain-a7f8938b10877ff207688b3ff02f62c55e6c1266.tar.gz
Added script for running Screenplain.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/screenplain9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/screenplain b/bin/screenplain
new file mode 100755
index 0000000..ad6a673
--- /dev/null
+++ b/bin/screenplain
@@ -0,0 +1,9 @@
+#!/usr/bin/env python
+import sys
+from os.path import dirname, join, abspath, pardir
+
+if __name__ == '__main__':
+ p = abspath(join(dirname(__file__), pardir))
+ sys.path.append(p)
+ from screenplain.main import main
+ main(sys.argv[1:])