refactor: reformat environment variable assignment to use explicit multi‑line tuple syntax
This commit is contained in:
1 file changed
+8
-2
@@ -8,12 +8,18 @@ if src_path not in sys.path:
|
|||||||
sys.path.insert(0, src_path)
|
sys.path.insert(0, src_path)
|
||||||
|
|
||||||
# App-capture library paths (built via meson in src/window/switcher/app-capture/builddir)
|
# App-capture library paths (built via meson in src/window/switcher/app-capture/builddir)
|
||||||
_app_capture_builddir = os.path.join(src_path, "window", "switcher", "app-capture", "builddir")
|
_app_capture_builddir = os.path.join(
|
||||||
|
src_path, "window", "switcher", "app-capture", "builddir"
|
||||||
|
)
|
||||||
if os.path.isdir(_app_capture_builddir):
|
if os.path.isdir(_app_capture_builddir):
|
||||||
for env_var in ("GI_TYPELIB_PATH", "LD_LIBRARY_PATH"):
|
for env_var in ("GI_TYPELIB_PATH", "LD_LIBRARY_PATH"):
|
||||||
current = os.environ.get(env_var, "")
|
current = os.environ.get(env_var, "")
|
||||||
if _app_capture_builddir not in current.split(os.pathsep):
|
if _app_capture_builddir not in current.split(os.pathsep):
|
||||||
os.environ[env_var] = f"{_app_capture_builddir}{os.pathsep}{current}" if current else _app_capture_builddir
|
os.environ[env_var] = (
|
||||||
|
f"{_app_capture_builddir}{os.pathsep}{current}"
|
||||||
|
if current
|
||||||
|
else _app_capture_builddir
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
# Apply monkey patch for hyprland lua dispatcher
|
# Apply monkey patch for hyprland lua dispatcher
|
||||||
|
|||||||
Reference in new issue
Block a user