1. Thomas Waldmann
  2. moin-2.0


Tarashish Mishra  committed 8b03da7

Added check for support directory while running moin.py

  • Participants
  • Parent commits 1131bb6
  • Branches gae

Comments (0)

Files changed (1)

File moin.py

View file
  • Ignore whitespace
     support_path = os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'support'))
     if support_path not in sys.path:
         sys.path.insert(0, support_path)
+        try:
+            import flask
+            import jinja2
+            import whoosh
+        except ImportError:
+            raise Exception("No support directory found. You need a directory containing all the dependencies to run moin at {0}".format(support_path))