Changeset 8425
- Timestamp:
- 08/17/08 12:35:33 (4 months ago)
- Files:
-
- django/trunk/django/core/management/__init__.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/management/__init__.py
r8323 r8425 2 2 import sys 3 3 from optparse import OptionParser 4 from imp import find_module 4 import imp 5 5 6 6 import django … … 48 48 # of the app_name but the project directory itself isn't on the path. 49 49 try: 50 f, path, descr = find_module(part,path)50 f, path, descr = imp.find_module(part,path) 51 51 except ImportError,e: 52 52 if os.path.basename(os.getcwd()) != part: … … 55 55 while parts: 56 56 part = parts.pop() 57 f, path, descr = find_module(part, path and [path] or None)57 f, path, descr = imp.find_module(part, path and [path] or None) 58 58 return path 59 59
