Changeset 4392

Show
Ignore:
Timestamp:
10/06/08 11:57:20 (2 months ago)
Author:
cboos
Message:

GraphvizPlugin: [graphviz] cache_dir can be relative to the Trac environment path.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • graphvizplugin/0.11/graphviz/graphviz.py

    r4391 r4392  
    5252            """The directory that will be used to cache the generated images 
    5353            (note that the directory must exist). 
     54            If not given as an absolute path, the path will be relative to  
     55            the Trac environment's directory. 
    5456            """) 
    5557 
     
    325327            return True, self.show_err(msg) 
    326328 
     329        if not os.path.isabs(self.cache_dir): 
     330            self.cache_dir = os.path.join(self.env.path, self.cache_dir) 
     331 
    327332        if not os.path.exists(self.cache_dir): 
    328333            msg = "The cache_dir '%s' doesn't exist, please create it." % \