The compile time directory for the module. Returns: Full path to module directory at compile time. Notes: For packages, we let the package directory be the result, otherwise the containing directory is the result. Notes:
(self)
| 162 | return os.path.abspath(self.source_ref.getFilename()) |
| 163 | |
| 164 | def getCompileTimeDirectory(self): |
| 165 | """The compile time directory for the module. |
| 166 | |
| 167 | Returns: |
| 168 | Full path to module directory at compile time. |
| 169 | Notes: |
| 170 | For packages, we let the package directory be |
| 171 | the result, otherwise the containing directory |
| 172 | is the result. |
| 173 | Notes: |
| 174 | Use this to find files nearby a module, mainly |
| 175 | in plugin code. |
| 176 | """ |
| 177 | result = self.getCompileTimeFilename() |
| 178 | if not os.path.isdir(result): |
| 179 | result = os.path.dirname(result) |
| 180 | return result |
| 181 | |
| 182 | def getRunTimeFilename(self): |
| 183 | reference_mode = getFileReferenceMode() |
no test coverage detected