Changes between Initial Version and Version 1 of Ticket #8919, comment 1
- Timestamp:
- Oct 11, 2013, 10:03:01 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #8919, comment 1
initial v1 4 4 {{{ 5 5 #!python 6 if fpath and not os.path.exists( path): name = os.path.join(self.env.path,fpath,name)6 if fpath and not os.path.exists(fpath): name = os.path.join(self.env.path,fpath,name) 7 7 }}} 8 8 … … 12 12 fpath, fname = os.path.split(name) 13 13 if 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)14 if fpath and not os.path.exists(fpath): name = os.path.join(self.env.path,fpath,name) 15 15 if not os.path.exists(name): raise IOError 16 16 }}} 17 17 So that should do: 18 18 * `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 path19 * `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 20 20 21 21 Please let me know whether that worked out. And sorry that it took me so long to respond!