don't die if there is no version.py
This commit is contained in:
parent
fdc1ab93e9
commit
86057cef19
1 changed files with 5 additions and 2 deletions
|
@ -24,10 +24,13 @@ import os
|
|||
import hashlib
|
||||
|
||||
import cdist.log
|
||||
|
||||
|
||||
try:
|
||||
import cdist.version
|
||||
|
||||
|
||||
VERSION = cdist.version.VERSION
|
||||
except ModuleNotFoundError:
|
||||
VERSION = 'from git'
|
||||
|
||||
BANNER = """
|
||||
.. . .x+=:. s
|
||||
|
|
Loading…
Reference in a new issue