From 3f274356d020a753f1f910142ce56c02a0a36045 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 26 Feb 2013 00:45:26 +0000 Subject: [PATCH] Move check for XMLSRC to etg command instead of when the etgtools are imported. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- build.py | 2 ++ etgtools/__init__.py | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index 09a28516..7f7fd80d 100755 --- a/build.py +++ b/build.py @@ -606,6 +606,8 @@ def doxhtml(options, args): def etg(options, args): cmdTimer = CommandTimer('etg') cfg = Config() + assert os.path.exists(cfg.DOXY_XML_DIR), "Doxygen XML folder not found: " + cfg.DOXY_XML_DIR + pwd = pushDir(cfg.ROOT_DIR) # TODO: Better support for selecting etg cmd-line flags... diff --git a/etgtools/__init__.py b/etgtools/__init__.py index df901767..d03d5a05 100644 --- a/etgtools/__init__.py +++ b/etgtools/__init__.py @@ -26,7 +26,6 @@ cfg = Config(noWxConfig=True) phoenixRoot = cfg.ROOT_DIR XMLSRC = cfg.DOXY_XML_DIR -assert os.path.exists(XMLSRC), "Unable to locate Doxygen XML files at " + XMLSRC #---------------------------------------------------------------------------