diff --git a/rivetc/src/prefs.py b/rivetc/src/prefs.py index 0bbedb878..29eee8ab6 100644 --- a/rivetc/src/prefs.py +++ b/rivetc/src/prefs.py @@ -311,7 +311,6 @@ def __init__(self, args: [str]): self.mod_dir = path.dirname(path.abspath(self.input)) if path.isfile( self.input ) else self.input - self.library_path.append(self.mod_dir) def build_rivet_dir(self): if not path.isdir(RIVET_DIR): diff --git a/rivetc/src/register.py b/rivetc/src/register.py index 4903c2dec..117178341 100644 --- a/rivetc/src/register.py +++ b/rivetc/src/register.py @@ -225,6 +225,7 @@ def walk_import_decl(self, decl): continue self.check_imported_symbol(symbol, decl.pos) self.source_file.imported_symbols[symbol.name] = symbol + return for import_info in decl.import_list: if import_info.name == "self": self.source_file.imported_symbols[decl.alias