2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

management/file_import: invalidate linecache if needed

This commit is contained in:
Sebastien Bourdeauducq 2015-01-07 18:14:52 +08:00
parent c11708972d
commit b63b46786e

View File

@ -1,7 +1,10 @@
import importlib.machinery
import linecache
def file_import(filename):
linecache.checkcache(filename)
modname = filename
i = modname.rfind("/")
if i > 0: