]> sigrok.org Git - libsigrokdecode.git/blobdiff - tools/install-decoders
install: unbreak installation with Python 3.7 (os.errno)
[libsigrokdecode.git] / tools / install-decoders
index 3772bd5aefbc108b0698c3645d57bfe0ad7e0e46..30360dbd9e5515d5c37adc6aac4a2485f9159053 100755 (executable)
@@ -18,6 +18,7 @@
 ## along with this program; if not, see <http://www.gnu.org/licenses/>.
 ##
 
+import errno
 import os
 import sys
 from shutil import copy
@@ -64,7 +65,7 @@ def install(srcdir, dstdir, s):
         try:
             os.mkdir(pd_dst)
         except OSError as e:
-            if e.errno != os.errno.EEXIST:
+            if e.errno != errno.EEXIST:
                 raise
             else:
                 pass