tools/bin/mydoc
aozhiwei 37b18e9297 1
2021-11-17 16:37:33 +08:00

15 lines
275 B
Python
Executable File

#!/usr/bin/python
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/../scripts/mydoc')
import mydoc
workDir = os.getcwd()
doc = mydoc.MyDoc(workDir)
if len(sys.argv) > 1 and sys.argv[1] == '-g':
doc.generate()
else:
doc.convert()