Commits

Doug Hellmann  committed e0fb0c8

force rebuild of .pyc files in zipimport example

  • Participants
  • Parent commits b076cd8

Comments (0)

Files changed (1)

File PyMOTW/zipimport/index.rst

     :start-after: #end_pymotw_header
 
 .. {{{cog
+.. # clean up pyc files in case the interpreter version has
+.. # changed since the last build
+.. [ p.unlink() for p in path(cog.inFile).parent.glob('*.pyc') ]
 .. (path(cog.inFile).parent / 'zipimport_example.zip').unlink()
 .. cog.out(run_script(cog.inFile, 'zipimport_make_example.py'))
 .. }}}