(path)
| 245 | |
| 246 | |
| 247 | def to_absolute_path(path): |
| 248 | path = os.path.expanduser(path) |
| 249 | if os.path.isabs(path): |
| 250 | return path |
| 251 | else: |
| 252 | if "BUILD_WORKING_DIRECTORY" in os.environ: |
| 253 | return os.path.join(os.environ["BUILD_WORKING_DIRECTORY"], path) |
| 254 | else: |
| 255 | return path |
| 256 | |
| 257 | |
| 258 | def main(unused_argv): |