forked from M-Labs/artiq
management/file_import: invalidate linecache if needed
This commit is contained in:
parent
c11708972d
commit
b63b46786e
|
@ -1,7 +1,10 @@
|
|||
import importlib.machinery
|
||||
import linecache
|
||||
|
||||
|
||||
def file_import(filename):
|
||||
linecache.checkcache(filename)
|
||||
|
||||
modname = filename
|
||||
i = modname.rfind("/")
|
||||
if i > 0:
|
||||
|
|
Loading…
Reference in New Issue