Skip to content

Commit 042e991

Browse files
committed
style(bigquery): update package name derivation in log_package_context
1 parent ecf4224 commit 042e991

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/google-cloud-bigquery/noxfile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ def log_package_context(session: nox.Session) -> Generator[None, None, None]:
9090
even if the session fails or raises an exception.
9191
"""
9292
# Dynamically extract current folder name (e.g., 'google-cloud-bigquery')
93-
# Falls back to the root directory name if run from the repo root
94-
package_name = os.path.basename(os.getcwd())
93+
package_name = CURRENT_DIRECTORY.name
9594

9695
try:
9796
# Hands control back to the session code block

0 commit comments

Comments
 (0)