diff options
author | supriya <supriya@dragbox.(none)> | 2012-06-11 16:24:50 +0530 |
---|---|---|
committer | supriya <supriya@dragbox.(none)> | 2012-06-11 16:24:50 +0530 |
commit | 04f1a3ffa2b83e2849d7e3f7902de0309cf7443c (patch) | |
tree | 11e029fa6a875d004a81aa2c5dd93cc75537be9b /objectapp/createhtml.py | |
parent | 833243ea72813e1e3c4256fc00b9e0576e66cf06 (diff) | |
download | gnowsys-04f1a3ffa2b83e2849d7e3f7902de0309cf7443c.tar.gz |
Gnowmacs editor added to gnowsys-studio
Diffstat (limited to 'objectapp/createhtml.py')
-rwxr-xr-x | objectapp/createhtml.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/objectapp/createhtml.py b/objectapp/createhtml.py new file mode 100755 index 00000000..78414085 --- /dev/null +++ b/objectapp/createhtml.py @@ -0,0 +1,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) + |