summaryrefslogtreecommitdiff
path: root/grc/python
diff options
context:
space:
mode:
Diffstat (limited to 'grc/python')
-rw-r--r--grc/python/flow_graph.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/grc/python/flow_graph.tmpl b/grc/python/flow_graph.tmpl
index c18245e819..fe1155bb50 100644
--- a/grc/python/flow_graph.tmpl
+++ b/grc/python/flow_graph.tmpl
@@ -280,8 +280,8 @@ $short_id#slurp
if __name__ == '__main__':
#if $generate_options in ('wx_gui', 'qt_gui')
import ctypes
- import os
- if os.name == 'posix':
+ import sys
+ if sys.platform.startswith('linux'):
try:
x11 = ctypes.cdll.LoadLibrary('libX11.so')
x11.XInitThreads()