Changeset 2945 for pykota/trunk/pykota/accounter.py
- Timestamp:
- 06/16/06 16:25:49 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/accounter.py
r2635 r2945 24 24 25 25 import sys 26 import os 27 import imp 26 28 27 29 class PyKotaAccounterError(Exception): … … 96 98 (backend, args) = kotafilter.config.getAccounterBackend(kotafilter.PrinterName) 97 99 try : 98 exec "from pykota.accounters import %s as accounterbackend" % backend.lower() 100 accounterbackend = imp.load_source("accounterbackend", 101 os.path.join(os.path.dirname(__file__), 102 "storages", 103 "%s.py" % backend.lower())) 99 104 except ImportError : 100 105 raise PyKotaAccounterError, _("Unsupported accounter backend %s") % backend