diff python/ppci/__init__.py @ 106:f2d980eef509

improved code generation
author Windel Bouwman
date Mon, 31 Dec 2012 18:26:56 +0100
parents 6a303f835c6d
children b73bc14a3aa3
line wrap: on
line diff
--- a/python/ppci/__init__.py	Mon Dec 31 17:35:17 2012 +0100
+++ b/python/ppci/__init__.py	Mon Dec 31 18:26:56 2012 +0100
@@ -1,4 +1,11 @@
 # File to make this directory a package.
 
+import sys
+
 version = '0.0.1'
 
+# Assert python version:
+if sys.version_info.major != 3:
+   print("Needs to be run in python version 3.x")
+   sys.exit(1)
+