fix import bug in setup.py

This commit is contained in:
Xintao
2021-08-28 13:26:09 +08:00
parent 2c20a354b6
commit 3ce826cabe

View File

@@ -45,7 +45,7 @@ def get_hash():
sha = get_git_hash()[:7]
elif os.path.exists(version_file):
try:
from facexlib.version import __version__
from realesrgan.version import __version__
sha = __version__.split('+')[-1]
except ImportError:
raise ImportError('Unable to get git version')