summaryrefslogtreecommitdiff
path: root/grc/python
diff options
context:
space:
mode:
authorTom Rondeau <tom@trondeau.com>2014-01-13 19:31:08 -0500
committerTom Rondeau <tom@trondeau.com>2014-01-13 19:31:08 -0500
commitf7f28bbd6e93a706a80dc8484f339fbd3aaf7a7e (patch)
tree760bce0d72cf296fee6e3f097d832b9919d8e170 /grc/python
parent41e586635983488789d48e2dce57828aed560af8 (diff)
parentc3fc18011f2712708dd70451437679f1c14736b9 (diff)
Merge branch 'maint'
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()