Start using file io when opening random modules

This commit is contained in:
Dave Halter
2019-05-31 23:42:19 +02:00
parent b9e8bff5e2
commit fcf214b548
5 changed files with 59 additions and 42 deletions
+2 -2
View File
@@ -179,8 +179,8 @@ class ModuleContext(ModuleMixin, TreeContext):
parent_context=None,
tree_node=module_node
)
self._file_io = file_io
if self._file_io is None:
self.file_io = file_io
if file_io is None:
self._path = None
else:
self._path = file_io.path