1 # Utility module to import all modules in the path, in the hope
2 # that this will update their ".pyc" files.
7 # Sabotage 'gl' and 'stdwin' to prevent windows popping up...
8 for m
in 'gl', 'stdwin', 'fl', 'fm':
11 exceptions
= ['importall']
16 names
= os
.listdir(dir)
18 print 'Can\'t list', dir
22 head
, tail
= name
[:-3], name
[-3:]
23 if tail
== '.py' and head
not in exceptions
:
28 except KeyboardInterrupt:
33 print 'Sorry:', sys
.exc_type
+ ':',