Commit 0a5908ba authored by Serge S. Koval's avatar Serge S. Koval

Merge pull request #436 from xiaohanyu/master

Fix two small code error in examples.
parents bf593270 2b1f8e0d
...@@ -197,8 +197,8 @@ def build_sample_db(): ...@@ -197,8 +197,8 @@ def build_sample_db():
if __name__ == '__main__': if __name__ == '__main__':
# Build a sample db on the fly, if one does not exist yet. # Build a sample db on the fly, if one does not exist yet.
app_dir = op.realpath(os.path.dirname(__file__)) app_dir = os.path.realpath(os.path.dirname(__file__))
database_path = op.join(app_dir, app.config['DATABASE_FILE']) database_path = os.path.join(app_dir, app.config['DATABASE_FILE'])
if not os.path.exists(database_path): if not os.path.exists(database_path):
build_sample_db() build_sample_db()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment