mirror of https://github.com/m-labs/artiq.git
management/file_import: invalidate linecache if needed
This commit is contained in:
parent
c11708972d
commit
b63b46786e
|
@ -1,7 +1,10 @@
|
||||||
import importlib.machinery
|
import importlib.machinery
|
||||||
|
import linecache
|
||||||
|
|
||||||
|
|
||||||
def file_import(filename):
|
def file_import(filename):
|
||||||
|
linecache.checkcache(filename)
|
||||||
|
|
||||||
modname = filename
|
modname = filename
|
||||||
i = modname.rfind("/")
|
i = modname.rfind("/")
|
||||||
if i > 0:
|
if i > 0:
|
||||||
|
|
Loading…
Reference in New Issue