diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2018-08-25 15:20:10 +0200 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2018-08-25 15:20:10 +0200 |
commit | 5f7742af35b472003f57634909161708ff2d986f (patch) | |
tree | b789bb40948c12d932153adeb04f7a477a0ebea3 /tools | |
parent | 11fb6d15fd2eb09d390dab902d8155aaba130cf4 (diff) | |
download | libsigrokdecode-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-x | tools/install-decoders | 3 |
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 |