summaryrefslogtreecommitdiff
path: root/sandbox/paultremblay/docutils_nest/scripts/docutils-nest-xml.py
diff options
context:
space:
mode:
authorwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2006-01-09 20:44:25 +0000
committerwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2006-01-09 20:44:25 +0000
commitd77fdfef70e08114f57cbef5d91707df8717ea9f (patch)
tree49444e3486c0c333cb7b33dfa721296c08ee4ece /sandbox/paultremblay/docutils_nest/scripts/docutils-nest-xml.py
parent53cd16ca6ca5f638cbe5956988e88f9339e355cf (diff)
parent3993c4097756e9885bcfbd07cb1cc1e4e95e50e4 (diff)
downloaddocutils-0.4.tar.gz
Release 0.4: tagging released revisiondocutils-0.4
git-svn-id: http://svn.code.sf.net/p/docutils/code/tags/docutils-0.4@4268 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'sandbox/paultremblay/docutils_nest/scripts/docutils-nest-xml.py')
-rwxr-xr-xsandbox/paultremblay/docutils_nest/scripts/docutils-nest-xml.py37
1 files changed, 0 insertions, 37 deletions
diff --git a/sandbox/paultremblay/docutils_nest/scripts/docutils-nest-xml.py b/sandbox/paultremblay/docutils_nest/scripts/docutils-nest-xml.py
deleted file mode 100755
index 788f34190..000000000
--- a/sandbox/paultremblay/docutils_nest/scripts/docutils-nest-xml.py
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/usr/bin/env python
-
-import sys, os
-import docutils_nest.nest_utils
-import docutils_nest.rst_options
-
-
-def convert_file():
- options_dict = {
- 'output': [1]
- }
- opt_obj = docutils_nest.rst_options.OptionsRst(sys.argv, options_dict)
- inline_opts, args, doc_opts = opt_obj.parse_options()
- if inline_opts == 0:
- print_help_message()
- sys.stderr.write('Script will now quite because of illegal options\n')
- sys.exit(1)
- try:
- file = args[0]
- except IndexError:
- sys.stderr.write('You must provide a file for the script to convert.\n'
- 'Script will now quit'
- )
- sys.exit(1)
- output = inline_opts.get('output')
- if not output:
- sys.stderr.write('You must provide an output option for the script to work\n'
- 'Script will now quit\n'
- )
- sys.exit(1)
- convert_obj = docutils_nest.nest_utils.RstWithInline(file, output, docutils_opts = doc_opts)
- convert_obj.convert()
-
-if __name__ == '__main__':
- convert_file()
-
-