diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2018-10-24 17:08:13 +0200 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2018-10-24 17:08:13 +0200 |
commit | ac06e0f5676c70687156201b943b892c28687b44 (patch) | |
tree | bf27451a6a5b5d1deb5b5022fc53ce48f8bde7e0 | |
parent | 06c89585067fef79d2521a739dea75e565bf8979 (diff) |
removed texopen.py
-rwxr-xr-x | texopen.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/texopen.py b/texopen.py new file mode 100755 index 0000000..26baaf8 --- /dev/null +++ b/texopen.py @@ -0,0 +1,16 @@ +#!/usr/bin/python + +import sys +import subprocess + +if len(sys.argv) >= 3: + file = sys.argv[1] + line = sys.argv[2] + + print(file) + print(line) + + if file.endswith('.tikz'): + subprocess.call(['tikzit', file]) + else: + subprocess.call(['subl', file + ':' + line]) |