Changeset 2945 for pykota/trunk/pykota/storage.py
- Timestamp:
- 06/16/06 16:25:49 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storage.py
r2937 r2945 23 23 # 24 24 25 import os 26 import imp 25 27 from mx import DateTime 26 28 … … 750 752 backend = backendinfo["storagebackend"] 751 753 try : 752 exec "from pykota.storages import %s as storagebackend" % backend.lower() 754 storagebackend = imp.load_source("storagebackend", 755 os.path.join(os.path.dirname(__file__), 756 "storages", 757 "%s.py" % backend.lower())) 753 758 except ImportError : 754 759 raise PyKotaStorageError, _("Unsupported quota storage backend %s") % backend