mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-01-25 22:05:57 -05:00
Use built-in platform check
This commit is contained in:
parent
b5bf730e07
commit
eb3ff558c0
@ -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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user