Use built-in platform check

This commit is contained in:
Mark Qvist 2025-01-13 15:09:39 +01:00
parent b5bf730e07
commit eb3ff558c0

View File

@ -161,8 +161,7 @@ class Node:
try:
if request_allowed:
RNS.log("Serving page: "+file_path, RNS.LOG_VERBOSE)
is_windows = sys.platform == "win32"
if is_windows is False and os.access(file_path, os.X_OK):
if not RNS.vendor.platformutils.is_windows() and os.access(file_path, os.X_OK):
env_map = {}
if "PATH" in os.environ:
env_map["PATH"] = os.environ["PATH"]