os.rename(fname + ".html", fname + ".tmpl")
if fname == 'vimrc' and os.path.exists('.' + fname):
shutil.copy2('.' + fname, fname)
+ if fname.endswith('.py'):
+ new_name = fname + '.txt'
+ os.rename(fname, new_name)
+ fname = new_name
if os.path.exists(fname):
os.chmod(fname, 0644)
# Due to nested_scopes and pydoc.help(*args, **kwds) this file only works with
# Python 2.1 or higher.
#
-# Text version <a href="init.py">here</a>
+# Text version <a href="init.py.txt">here</a>
#
# Generated by <a href="gvimrc.html">gvim</a> :runtime syntax/2html.vim
#
<pre>
<font color="#0000ff"># This is startup file for interactive python debugger.
#
-# Text version <a href="pdbrc.py">here</a>
+# Text version <a href="pdbrc.py.txt">here</a>
#
# Generated by <a href="gvimrc.html">gvim</a> :runtime syntax/2html.vim
#