Commit 2cf9957
committed
Fix Python bootstrap main_rel_path
Use os.path.normpath() to resolve "_main/../repo" to "repo"
and convert forward slashes to backward slashes on Windows.
This fixes an issue where "_main" doesn't exist and in turn
"assert os.path.exists("_main/../repo")" fails. This happens
for example when packaging a py_binary from a foreign repo
into a tar/container.1 parent cd550d9 commit 2cf9957
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
502 | | - | |
503 | | - | |
| 502 | + | |
504 | 503 | | |
505 | 504 | | |
506 | 505 | | |
| |||
0 commit comments