Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions sqlmesh/core/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import abc
import importlib
import linecache
import os
import sys
import types
Expand Down Expand Up @@ -71,6 +72,10 @@ def load(self, context: Context) -> LoadedProject:
Args:
context: The context to load macros and models for
"""
# python files are cached by the system
# need to manually clear here so we can reload macros
linecache.clearcache()

self._context = context
self._path_mtimes.clear()
self._dag = DAG()
Expand Down