mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 08:54:47 +01:00
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:
@@ -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 = [
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user