From 6ed81e9baeb90aa8598b010cb8bc4570a4e243fc Mon Sep 17 00:00:00 2001 From: Alexey Min Date: Tue, 20 Oct 2015 11:01:00 +0500 Subject: [PATCH] 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). --- pyfa.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyfa.py b/pyfa.py index 81899183af..ae40c36601 100755 --- a/pyfa.py +++ b/pyfa.py @@ -74,6 +74,13 @@ except ImportError: print("Cannot find sqlalchemy.\nYou can download sqlalchemy (0.6+) from http://www.sqlalchemy.org/") 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__":