Skip to content

Commit 2c3b883

Browse files
committed
Update _os usage
1 parent e426195 commit 2c3b883

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/compas_fab/backends/pybullet/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from itertools import combinations
99

1010
import compas
11-
from compas._os import system
1211
from compas.geometry import Frame
1312
from compas.robots import RobotModel
1413

@@ -67,7 +66,7 @@ def connect(self, shadows=True, color=None, width=None, height=None):
6766
self._configure_debug_visualizer(shadows)
6867

6968
def _detect_display(self):
70-
if self.connection_type == 'gui' and system != 'darwin' and not compas.is_windows() and ('DISPLAY' not in os.environ):
69+
if self.connection_type == 'gui' and not compas.OSX and not compas.WINDOWS and ('DISPLAY' not in os.environ):
7170
self.connection_type = 'direct'
7271
print('No display detected! Continuing without GUI.')
7372

0 commit comments

Comments
 (0)