Enable etg code to be used to build extensions other than Phoenix itself.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Ollivier
2012-07-11 17:42:05 +00:00
parent 2cea6a0e96
commit 3670519430
4 changed files with 39 additions and 24 deletions

View File

@@ -13,17 +13,20 @@ them from the Doxygen XML, and producing wrapper code from them.
"""
import sys, os
# Mac Python actually has a buildtools module, so we need
# to make sure ours is picked up when we're not run from the
# Phoenix root dir.
sys.path.insert(0, os.path.abspath(os.path.split(__file__)[0]+'/..'))
from buildtools.config import Config
from .extractors import *
#---------------------------------------------------------------------------
cfg = Config(noWxConfig=True)
from buildtools.config import phoenixDir, wxDir
xmlsrcbase = 'docs/doxygen/out/xml'
WXWIN = wxDir()
if WXWIN:
XMLSRC = os.path.join(WXWIN, xmlsrcbase)
assert WXWIN and os.path.exists(XMLSRC), "Unable to locate Doxygen XML files"
phoenixRoot = cfg.ROOT_DIR
XMLSRC = cfg.DOXY_XML_DIR
assert os.path.exists(XMLSRC), "Unable to locate Doxygen XML files at " + XMLSRC
#---------------------------------------------------------------------------

View File

@@ -18,8 +18,11 @@ import etgtools.generators as generators
from etgtools.generators import nci, Utf8EncodingStream, textfile_open, wrapText
from buildtools.config import Config
cfg = Config(noWxConfig=True)
divider = '//' + '-'*75 + '\n'
phoenixRoot = os.path.abspath(os.path.split(__file__)[0]+'/..')
phoenixRoot = cfg.ROOT_DIR
class SipGeneratorError(RuntimeError):
pass