summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2018-08-25 15:20:10 +0200
committerGerhard Sittig <gerhard.sittig@gmx.net>2018-08-25 15:20:10 +0200
commit5f7742af35b472003f57634909161708ff2d986f (patch)
treeb789bb40948c12d932153adeb04f7a477a0ebea3 /tools
parent11fb6d15fd2eb09d390dab902d8155aaba130cf4 (diff)
downloadlibsigrokdecode-5f7742af35b472003f57634909161708ff2d986f.tar.gz
libsigrokdecode-5f7742af35b472003f57634909161708ff2d986f.zip
install: unbreak installation with Python 3.7 (os.errno)
The os.errno module has not been an official feature. Python 3.7 removed the corresponding import. This broke the installation of decoders. Prefer 'errno' over 'os.errno'.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/install-decoders3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/install-decoders b/tools/install-decoders
index 3772bd5..30360db 100755
--- a/tools/install-decoders
+++ b/tools/install-decoders
@@ -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