Browse Source

fix missing version.py detection for python3.5

Fabian Peter Hammerle 4 năm trước cách đây
mục cha
commit
63f6f37e28
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      freesurfer_surface/__init__.py

+ 1 - 1
freesurfer_surface/__init__.py

@@ -50,7 +50,7 @@ import numpy
 
 try:
     from freesurfer_surface.version import __version__
-except ModuleNotFoundError:
+except ImportError:  # ModuleNotFoundError not available in python<3.6
     # package is not installed
     __version__ = None