Changeset 1666:6aa1e0155bb5

Show
Ignore:
Timestamp:
11/19/08 21:46:38 (7 weeks ago)
Author:
Ali Afshar <aafshar@…>
Message:

sanitize projects on loading, and for document relpaths

Location:
pida
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pida/core/document.py

    r1541 r1666  
    8383    def __init__(self, boss, filename=None, project=None): 
    8484        self.boss = boss 
    85         self.filename = filename 
     85        self.filename = os.path.realpath(filename) 
    8686        self.project = project 
    8787        self.editor = None 
  • pida/services/project/project.py

    r1660 r1666  
    384384    def _read_options(self): 
    385385        for dirname in self.opt('project_dirs'): 
     386            dirname = os.path.realpath(dirname) 
    386387            if not os.path.exists(dirname): 
    387388                self.log("%s does not exist", dirname)