From b63b46786ef9deced59dbd7e7ed96e67ecaf162a Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 7 Jan 2015 18:14:52 +0800 Subject: [PATCH] management/file_import: invalidate linecache if needed --- artiq/management/file_import.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/artiq/management/file_import.py b/artiq/management/file_import.py index d1f59fdd1..f183b142b 100644 --- a/artiq/management/file_import.py +++ b/artiq/management/file_import.py @@ -1,7 +1,10 @@ import importlib.machinery +import linecache def file_import(filename): + linecache.checkcache(filename) + modname = filename i = modname.rfind("/") if i > 0: