Changeset 3627

Show
Ignore:
Timestamp:
05/06/08 17:53:08 (7 months ago)
Author:
pacopablo
Message:
  • Move import of resource_filename to module scope to avoid issue with error re: no module os.path.
  • Refs #2987, possible solution
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tasklistplugin/trunk/tasklist/main.py

    r3409 r3627  
    3030from trac.config import Option, ListOption 
    3131from trac.util import get_reporter_id 
     32 
     33from pkg_resources import resource_filename 
    3234 
    3335__all__ = ['TasklistPlugin', 'pprint'] 
     
    198200    # ITemplateProvider methods 
    199201    def get_templates_dirs(self): 
    200         from pkg_resources import resource_filename 
    201202        return [resource_filename(__name__, 'templates')] 
    202203 
    203204    def get_htdocs_dirs(self): 
    204         from pkg_resources import resource_filename 
    205205        return [('tasklist', resource_filename(__name__, 'htdocs'))] 
    206206