Fix an issue with running as ../lit_autoupdate.py (#2280)

I think this was an issue before too, apparently I'm just running in new ways?
This commit is contained in:
Jon Ross-Perkins
2022-10-12 17:44:21 -07:00
committed by GitHub
parent 7f7b9a4086
commit b374595930
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -16,7 +16,8 @@ from pathlib import Path
def main() -> None:
# Calls the main script with explorer settings. This uses execv in order to
# avoid Python import behaviors.
actual_py = Path(__file__).parent.parent.joinpath(
this_py = Path(__file__).resolve()
actual_py = this_py.parent.parent.joinpath(
"bazel", "testing", "lit_autoupdate_base.py"
)
args = [
+2 -1
View File
@@ -16,7 +16,8 @@ from pathlib import Path
def main() -> None:
# Calls the main script with explorer settings. This uses execv in order to
# avoid Python import behaviors.
actual_py = Path(__file__).parent.parent.parent.joinpath(
this_py = Path(__file__).resolve()
actual_py = this_py.parent.parent.parent.joinpath(
"bazel", "testing", "lit_autoupdate_base.py"
)
args = [
+2 -1
View File
@@ -16,7 +16,8 @@ from pathlib import Path
def main() -> None:
# Calls the main script with explorer settings. This uses execv in order to
# avoid Python import behaviors.
actual_py = Path(__file__).parent.parent.parent.joinpath(
this_py = Path(__file__).resolve()
actual_py = this_py.parent.parent.parent.joinpath(
"bazel", "testing", "lit_autoupdate_base.py"
)
args = [