aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-12-26 10:05:25 +0100
committerGuido Günther <agx@sigxcpu.org>2016-12-26 10:14:31 +0100
commit69912f86329adf4df6c50741ca3f3635dd0cac0d (patch)
treeaa638987eac0d1f4e90d97b1b75bf9729068f9e3
parent56f6cb8933a0d7b618632ee63328813cd4d7f145 (diff)
Add simple helper to run from working copy
since running whatmaps/command.py doesn't work with python3
-rwxr-xr-xrun.py7
-rwxr-xr-xwhatmaps/command.py4
2 files changed, 7 insertions, 4 deletions
diff --git a/run.py b/run.py
new file mode 100755
index 0000000..3549cbb
--- /dev/null
+++ b/run.py
@@ -0,0 +1,7 @@
+#!/usr/bin/env python3
+
+import sys
+from whatmaps.command import run
+
+if __name__ == '__main__':
+ sys.exit(run())
diff --git a/whatmaps/command.py b/whatmaps/command.py
index 74d85da..7c9b476 100755
--- a/whatmaps/command.py
+++ b/whatmaps/command.py
@@ -259,8 +259,4 @@ def main(argv):
def run():
return(main(sys.argv))
-
-if __name__ == '__main__':
- sys.exit(main(sys.argv))
-
# vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·: