We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b40fef commit 473b18cCopy full SHA for 473b18c
1 file changed
ghpythonremote/helpers.py
@@ -7,9 +7,20 @@
7
8
logger = logging.getLogger("ghpythonremote.helpers")
9
10
+
11
+RUNNING_IN_RHINO5 = False
12
+try:
13
+ from Rhino.RhinoApp import ExeVersion
14
15
+ if ExeVersion == 5:
16
+ RUNNING_IN_RHINO5 = True
17
+except ImportError:
18
+ pass
19
20
WINDOWS = False
21
MACOS = False
-if platform.system() == "Windows":
22
+# "cli" is for IronPython in Rhino 5
23
+if platform.system() == "Windows" or (RUNNING_IN_RHINO5 and platform.system() == "cli"):
24
WINDOWS = True
25
if platform.system() == "Darwin":
26
MACOS = True
0 commit comments