summaryrefslogtreecommitdiff
path: root/gstudio/createhtml.py
blob: 78414085179a57623eeb8d820cb653a37f9e9133 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /usr/bin/env python

import sys
import os
import commands

def main(argv):
    #f_name =sys.argv[1]
    f_name = "/tmp/file.org"
    s1='commands.getoutput("emacs --batch '
    s2=" --eval '"
    s3="(org-export-as-html nil)'"
    s4='")'
    out = str(s1)+str(f_name)+str(s2)+str(s3)+str(s4)
    exec out

if __name__ == "__main__":
    main(sys.argv)