14 lines
247 B
Plaintext
14 lines
247 B
Plaintext
|
#!/usr/bin/env/python
|
||
|
|
||
|
import project2latex as p2l
|
||
|
import sys
|
||
|
|
||
|
# TODO: improve interface
|
||
|
|
||
|
if len(sys.argv) <= 1:
|
||
|
print("Please provide a file to convert as first argument.")
|
||
|
sys.exit(1)
|
||
|
|
||
|
path = sys.argv[1]
|
||
|
print(p2l.convert(path).dumps())
|