diff --git a/pros/conductor/conductor.py b/pros/conductor/conductor.py index cc01f4f0..320dc843 100644 --- a/pros/conductor/conductor.py +++ b/pros/conductor/conductor.py @@ -383,13 +383,13 @@ def new_project(self, path: str, no_default_libs: bool = False, **kwargs) -> Pro if not no_default_libs: libraries = self.early_access_libraries if proj.use_early_access and (kwargs.get("version", ">").startswith("4") or kwargs.get("version", ">").startswith(">")) else self.default_libraries - if kwargs['version'][0] == '>' or kwargs['version'][0] == '4': - libraries[proj.target].remove('okapilib') - - if 'liblvgl' in libraries[proj.target] and kwargs['version'][0] != '>' and kwargs['version'][0] != '4': - libraries[proj.target].remove('liblvgl') - for library in libraries[proj.target]: + if kwargs['version'][0] == '>' or kwargs['version'][0] == '4': + if library == "okapilib": + continue + if kwargs['version'][0] != '>' and kwargs['version'][0] != '4': + if library == "liblvgl": + continue try: # remove kernel version so that latest template satisfying query is correctly selected if 'version' in kwargs: