Skip to content

Commit

Permalink
Check that python-dateutil is installed at startup
Browse files Browse the repository at this point in the history
Check that python-dateutil is installed at startup in pyfa.py, same way as for wxPython and SQLAlchemy (except for version check).
  • Loading branch information
minlexx committed Oct 20, 2015
1 parent 1415de9 commit 6ed81e9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pyfa.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__":
Expand Down

0 comments on commit 6ed81e9

Please sign in to comment.