Skip to content

Commit

Permalink
🐛 Fix removed kernel version for PROS 3 projects
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankpatibandla committed May 22, 2024
1 parent ef353dd commit b173977
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pros/conductor/conductor.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,11 +383,12 @@ 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

version = kwargs['version'][0]
for library in libraries[proj.target]:
if kwargs['version'][0] == '>' or kwargs['version'][0] == '4':
if version == '>' or version == '4':
if library == "okapilib":
continue
if kwargs['version'][0] != '>' and kwargs['version'][0] != '4':
if version != '>' and version != '4':
if library == "liblvgl":
continue
try:
Expand Down

0 comments on commit b173977

Please sign in to comment.