[Python-checkins] devinabox: Try to support Windows users building the docs.
brett.cannon
python-checkins at python.org
Mon Feb 28 23:03:50 CET 2011
brett.cannon pushed 897f82506708 to devinabox:
http://hg.python.org/devinabox/rev/897f82506708
changeset: 6:897f82506708
user: Brett Cannon <brett at python.org>
date: Fri Feb 25 17:12:37 2011 -0800
summary:
Try to support Windows users building the docs.
files:
box.py
diff --git a/box.py b/box.py
--- a/box.py
+++ b/box.py
@@ -286,8 +286,9 @@
subprocess.check_call(['make', 'checkout'])
def build(self):
+ cmd = 'make' if sys.platform != 'win32' else 'make.bat'
with change_cwd(os.path.join(self.directory, 'Doc'):
- subprocess.check_call(['make', 'html'])
+ subprocess.check_call([cmd, 'html'])
if __name__ == '__main__':
--
Repository URL: http://hg.python.org/devinabox
More information about the Python-checkins
mailing list