Ticket #16167: 16167.package_commands.diff
File 16167.package_commands.diff, 785 bytes (added by , 13 years ago) |
---|
-
django/core/management/__init__.py
23 23 """ 24 24 command_dir = os.path.join(management_dir, 'commands') 25 25 try: 26 return [f[:-3] for f in os.listdir(command_dir) 27 if not f.startswith('_') and f.endswith('.py')] 26 return ([f[:-3] for f in os.listdir(command_dir) 27 if not f.startswith('_') and f.endswith('.py')] + 28 [f for f in os.listdir(command_dir) 29 if not f.startswith('_') 30 and os.path.exists(os.path.join(command_dir, f, '__init__.py'))]) 28 31 except OSError: 29 32 return [] 30 33