~lifeless/storm/bug-620615

« back to all changes in this revision

Viewing changes to storm/__init__.py

Merging changes from James.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
20
#
21
21
 
 
22
import os
 
23
 
22
24
 
23
25
version = "0.12"
24
26
version_info = tuple([int(x) for x in version.split(".")])
34
36
 
35
37
 
36
38
Undef = UndefType()
 
39
 
 
40
 
 
41
_have_cextensions = False
 
42
if not os.environ.get("STORM_DISABLE_CEXTENSIONS"):
 
43
    try:
 
44
        from storm import cextensions
 
45
        _have_cextensions = True
 
46
    except ImportError, e:
 
47
        if "cextensions" not in str(e):
 
48
            raise