Check that python-dateutil is installed at startup
Check that python-dateutil is installed at startup in pyfa.py, same way as for wxPython and SQLAlchemy (except for version check).
This commit is contained in:
7
pyfa.py
7
pyfa.py
@@ -75,6 +75,13 @@ if not hasattr(sys, 'frozen'):
|
|||||||
print("Cannot find sqlalchemy.\nYou can download sqlalchemy (0.6+) from http://www.sqlalchemy.org/")
|
print("Cannot find sqlalchemy.\nYou can download sqlalchemy (0.6+) from http://www.sqlalchemy.org/")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
# check also for dateutil module installed.
|
||||||
|
try:
|
||||||
|
import dateutil.parser # Copied import statement from service/update.py
|
||||||
|
except ImportError:
|
||||||
|
print("Cannot find python-dateutil.\nYou can download python-dateutil from https://pypi.python.org/pypi/python-dateutil")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# Configure paths
|
# Configure paths
|
||||||
|
|||||||
Reference in New Issue
Block a user