Commit
·
09e5be6
1
Parent(s):
5100032
glfw issue
Browse files- handler.py +2 -0
handler.py
CHANGED
@@ -14,6 +14,8 @@ class EndpointHandler():
|
|
14 |
Initialize the handler and load necessary resources.
|
15 |
This method is called once when the service starts.
|
16 |
"""
|
|
|
|
|
17 |
# Initialize DepthFlow once for efficiency
|
18 |
self.depthflow = DepthScene()
|
19 |
|
|
|
14 |
Initialize the handler and load necessary resources.
|
15 |
This method is called once when the service starts.
|
16 |
"""
|
17 |
+
os.environ['DISPLAY'] = ':0' # Sometimes needed to trick OpenGL to run headless
|
18 |
+
|
19 |
# Initialize DepthFlow once for efficiency
|
20 |
self.depthflow = DepthScene()
|
21 |
|