Changes between Initial Version and Version 1 of Ticket #8919, comment 1


Ignore:
Timestamp:
Oct 11, 2013, 10:03:01 PM (5 years ago)
Author:
izzy
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8919, comment 1

    initial v1  
    44{{{
    55#!python
    6 if fpath and not os.path.exists(path): name = os.path.join(self.env.path,fpath,name)
     6if fpath and not os.path.exists(fpath): name = os.path.join(self.env.path,fpath,name)
    77}}}
    88
     
    1212fpath, fname = os.path.split(name)
    1313if not fpath: name = os.path.join(self.env.path,'log',name)
    14 if fpath and not os.path.exists(path): name = os.path.join(self.env.path,fpath,name)
     14if fpath and not os.path.exists(fpath): name = os.path.join(self.env.path,fpath,name)
    1515if not os.path.exists(name): raise IOError
    1616}}}
    1717So that should do:
    1818 * `if not fpath:` if only a file name is given, look for it in the `log` subdirectory of the project's Trac environment
    19  * `if fpath and not os.path.exists(path):` if there was a path specified which does not exist, assume it's relative to the project's path
     19 * `if fpath and not os.path.exists(fpath):` if there was a path specified which does not exist, assume it's relative to the project's path
    2020
    2121Please let me know whether that worked out. And sorry that it took me so long to respond!