@@ -370,29 +370,29 @@ def write_file(fpath: str, content: str, newline: str | None = None) -> None:
370370 if 'quiet' not in d :
371371 print (__ ('File %s already exists, skipping.' ) % fpath )
372372
373- conf_path = os .path .join (templatedir , 'conf.py.jinja ' ) if templatedir else None
373+ conf_path = os .path .join (templatedir , 'conf.py_t ' ) if templatedir else None
374374 if not conf_path or not path .isfile (conf_path ):
375- conf_path = os .path .join (package_dir , 'templates' , 'quickstart' , 'conf.py.jinja ' )
375+ conf_path = os .path .join (package_dir , 'templates' , 'quickstart' , 'conf.py_t ' )
376376 with open (conf_path , encoding = "utf-8" ) as f :
377377 conf_text = f .read ()
378378
379379 write_file (path .join (srcdir , 'conf.py' ), template .render_string (conf_text , d ))
380380
381381 masterfile = path .join (srcdir , d ['master' ] + d ['suffix' ])
382- if template ._has_custom_template ('quickstart/master_doc.rst.jinja ' ):
382+ if template ._has_custom_template ('quickstart/master_doc.rst_t ' ):
383383 msg = ('A custom template `master_doc.rst_t` found. It has been renamed to '
384384 '`root_doc.rst_t`. Please rename it on your project too.' )
385385 print (colorize ('red' , msg ))
386- write_file (masterfile , template .render ('quickstart/master_doc.rst.jinja ' , d ))
386+ write_file (masterfile , template .render ('quickstart/master_doc.rst_t ' , d ))
387387 else :
388- write_file (masterfile , template .render ('quickstart/root_doc.rst.jinja ' , d ))
388+ write_file (masterfile , template .render ('quickstart/root_doc.rst_t ' , d ))
389389
390390 if d .get ('make_mode' ) is True :
391- makefile_template = 'quickstart/Makefile.new.jinja '
392- batchfile_template = 'quickstart/make.bat.new.jinja '
391+ makefile_template = 'quickstart/Makefile.new_t '
392+ batchfile_template = 'quickstart/make.bat.new_t '
393393 else :
394- makefile_template = 'quickstart/Makefile.jinja '
395- batchfile_template = 'quickstart/make.bat.jinja '
394+ makefile_template = 'quickstart/Makefile_t '
395+ batchfile_template = 'quickstart/make.bat_t '
396396
397397 if d ['makefile' ] is True :
398398 d ['rsrcdir' ] = 'source' if d ['sep' ] else '.'
0 commit comments