Ticket #12846: pyc-loader.diff
File pyc-loader.diff, 582 bytes (added by , 15 years ago) |
---|
-
core/management/__init__.py
old new 22 22 """ 23 23 command_dir = os.path.join(management_dir, 'commands') 24 24 try: 25 return [ f[:-3] for f in os.listdir(command_dir)26 if not f.startswith('_') and f.endswith('.py')]25 return [os.path.splitext(f)[0] for f in os.listdir(command_dir) 26 if not f.startswith('_') and (f.endswith('.py') or f.endswith('.pyc'))] 27 27 except OSError: 28 28 return [] 29 29