summaryrefslogtreecommitdiff
path: root/texopen.py
blob: 26baaf88f6bde3d7fdfb7e6091e39551808ab23b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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])