X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6d7b19b01379566b9f18a0e17f74afc2080dcf2c..11bf9fea53d75b460aaa4028a591917b6dd6fe54:/src/stc/gen_iface.py?ds=sidebyside diff --git a/src/stc/gen_iface.py b/src/stc/gen_iface.py index 9db059ea9f..1ed1ce7b14 100755 --- a/src/stc/gen_iface.py +++ b/src/stc/gen_iface.py @@ -26,7 +26,7 @@ CPP_DEST = os.path.abspath('./stc.cpp') if len(sys.argv) > 1 and sys.argv[1] == '--wxpython': DOCSTR_DEST = os.path.abspath('../../../wxPython/src/_stc_gendocs.i') else: - DOCSTR_DEST = '/dev/null' + DOCSTR_DEST = None # Value prefixes to convert @@ -999,7 +999,8 @@ def processIface(iface, h_tmplt, cpp_tmplt, ih_tmplt, h_dest, cpp_dest, docstr_d # write out destination files open(h_dest, 'w').write(h_text) open(cpp_dest, 'w').write(cpp_text) - open(docstr_dest, 'w').write(docstrings) + if docstr_dest: + open(docstr_dest, 'w').write(docstrings) open(ih_dest, 'w').write(ih_text)