Skip to content

Commit

Permalink
Small formatting fixes in stubgen_wrapper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasjng committed Oct 18, 2024
1 parent 13b6b8e commit a1973ea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions stubgen_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
from typing import Union

from stubgen import main
from python.runfiles import runfiles

DEBUG = bool(os.getenv("DEBUG", False))
DEBUG = bool(os.getenv("DEBUG"))
RLOCATION_ROOT = Path("_main") # the Python path root under the script's runfiles.

def get_runfiles_dir(path: Union[str, os.PathLike]):
Expand Down Expand Up @@ -90,7 +89,7 @@ def wrapper():
ext_path = runfiles_dir / fname
if DEBUG:
print(f"ext_path = {ext_path}")
if (ext_path).is_symlink():
if ext_path.is_symlink():
# Path.readlink() is available on Python 3.9+ only.
objfile = Path(os.readlink(ext_path))
else:
Expand Down

0 comments on commit a1973ea

Please sign in to comment.