File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1
1
This repository contains scripts for automatically building the Python
2
2
documentation on docs.python.org.
3
+
4
+ # How to test it?
5
+
6
+ $ mkdir www logs build_root
7
+ $ python3 -m venv build_root/venv/
8
+ $ build_root/venv/bin/python -m pip install -r requirements.txt
9
+ $ python3 ./build_docs.py --quick --build-root build_root --www-root www --log-directory logs --group $(id -g)
Original file line number Diff line number Diff line change @@ -293,6 +293,12 @@ def parse_args():
293
293
294
294
def main ():
295
295
args = parse_args ()
296
+ if args .log_directory :
297
+ args .log_directory = os .path .abspath (args .log_directory )
298
+ if args .build_root :
299
+ args .build_root = os .path .abspath (args .build_root )
300
+ if args .www_root :
301
+ args .www_root = os .path .abspath (args .www_root )
296
302
if sys .stderr .isatty ():
297
303
logging .basicConfig (format = "%(levelname)s:%(message)s" ,
298
304
stream = sys .stderr )
You can’t perform that action at this time.
0 commit comments