mirror of
https://github.com/markqvist/NomadNet.git
synced 2024-12-30 09:36:13 -05:00
don't try to execute nomadnet pages when running on windows
This commit is contained in:
parent
d8cfc69ac6
commit
7d18a103cf
@ -1,4 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
import RNS
|
import RNS
|
||||||
import time
|
import time
|
||||||
import threading
|
import threading
|
||||||
@ -159,7 +161,8 @@ class Node:
|
|||||||
try:
|
try:
|
||||||
if request_allowed:
|
if request_allowed:
|
||||||
RNS.log("Serving page: "+file_path, RNS.LOG_VERBOSE)
|
RNS.log("Serving page: "+file_path, RNS.LOG_VERBOSE)
|
||||||
if os.access(file_path, os.X_OK):
|
is_windows = sys.platform == "win32"
|
||||||
|
if is_windows is False and os.access(file_path, os.X_OK):
|
||||||
env_map = {}
|
env_map = {}
|
||||||
if "PATH" in os.environ:
|
if "PATH" in os.environ:
|
||||||
env_map["PATH"] = os.environ["PATH"]
|
env_map["PATH"] = os.environ["PATH"]
|
||||||
|
Loading…
Reference in New Issue
Block a user