Index: lnt/server/db/migrate.py =================================================================== --- lnt/server/db/migrate.py +++ lnt/server/db/migrate.py @@ -68,7 +68,7 @@ for item in os.listdir(schema_migrations_path): # Ignore certain known non-scripts. if item in ('README.txt', '__init__.py', 'new_suite.py', - 'util.py') or item.endswith('.pyc'): + 'util.py', '__pycache__') or item.endswith('.pyc'): continue # Ignore non-matching files. Index: lnt/server/db/rules_manager.py =================================================================== --- lnt/server/db/rules_manager.py +++ lnt/server/db/rules_manager.py @@ -27,7 +27,8 @@ rules_path = os.path.join(os.path.dirname(__file__), 'rules') for item in os.listdir(rules_path): # Ignore certain known non-scripts. - if item in ('README.txt', '__init__.py') or item.endswith('.pyc'): + if item in ('README.txt', '__init__.py', + '__pycache__') or item.endswith('.pyc'): continue # Ignore non-matching files.