Skip to content
Snippets Groups Projects
Commit 6c18cc4b authored by Richard van der Hoff's avatar Richard van der Hoff
Browse files

Ignore __pycache__ directories in schema delta dir

Now that we use py3, compiled python ends up in __pycache__ rather than *.pyc.
parent 78ba0e7a
No related branches found
No related tags found
No related merge requests found
Ignore __pycache__ directories in the database schema folder
...@@ -257,7 +257,7 @@ def _upgrade_existing_database(cur, current_version, applied_delta_files, ...@@ -257,7 +257,7 @@ def _upgrade_existing_database(cur, current_version, applied_delta_files,
module.run_create(cur, database_engine) module.run_create(cur, database_engine)
if not is_empty: if not is_empty:
module.run_upgrade(cur, database_engine, config=config) module.run_upgrade(cur, database_engine, config=config)
elif ext == ".pyc": elif ext == ".pyc" or file_name == "__pycache__":
# Sometimes .pyc files turn up anyway even though we've # Sometimes .pyc files turn up anyway even though we've
# disabled their generation; e.g. from distribution package # disabled their generation; e.g. from distribution package
# installers. Silently skip it # installers. Silently skip it
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment