summaryrefslogtreecommitdiff
path: root/grc/base
diff options
context:
space:
mode:
authorTom Rondeau2011-04-07 17:20:24 -0400
committerTom Rondeau2011-04-07 17:20:24 -0400
commit5c358afd00347f5da7a59dd73ea79cd3df26659d (patch)
tree60f5e5e1bcfc04292327d30921ab3b12574065e8 /grc/base
parente84ec722cb8643b8e8156514fab77c9199832e7c (diff)
parentf2e366cc4c9929cb2ca70038783b98f9672f6abe (diff)
downloadgnuradio-5c358afd00347f5da7a59dd73ea79cd3df26659d.tar.gz
gnuradio-5c358afd00347f5da7a59dd73ea79cd3df26659d.tar.bz2
gnuradio-5c358afd00347f5da7a59dd73ea79cd3df26659d.zip
Merge branch 'master' of gnuradio.org:gnuradio
Diffstat (limited to 'grc/base')
-rw-r--r--grc/base/Platform.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/grc/base/Platform.py b/grc/base/Platform.py
index 51a3b2f87..096fdec41 100644
--- a/grc/base/Platform.py
+++ b/grc/base/Platform.py
@@ -1,5 +1,5 @@
"""
-Copyright 2008, 2009 Free Software Foundation, Inc.
+Copyright 2008, 2009, 2011 Free Software Foundation, Inc.
This file is part of GNU Radio
GNU Radio Companion is free software; you can redistribute it and/or
@@ -17,6 +17,16 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
"""
+#Perform python integrity checks:
+# GRC will not work with interpreters that fail the checks below.
+# This can fail on interpreters built with special optimizations.
+try:
+ assert False
+ raise Exception, 'Failed python integrity check: assert not supported'
+except AssertionError: pass
+if __doc__ is None:
+ raise Exception, 'Failed python integrity check: __doc__ not supported'
+
import os
import sys
from .. base import ParseXML, odict