mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
fix(configure): unhappy types
This commit is contained in:
+3
-4
@@ -31,9 +31,8 @@ class Projects:
|
|||||||
if not os.path.exists(self.project_dir):
|
if not os.path.exists(self.project_dir):
|
||||||
os.makedirs(self.project_dir)
|
os.makedirs(self.project_dir)
|
||||||
|
|
||||||
only_projects = os.getenv("TT_ONLY_PROJECTS")
|
only_projects = os.getenv("TT_ONLY_PROJECTS", "")
|
||||||
if only_projects:
|
only_projects_list = only_projects.split(",")
|
||||||
only_projects = only_projects.split(",")
|
|
||||||
|
|
||||||
self.projects: List[Project] = []
|
self.projects: List[Project] = []
|
||||||
project_list = [
|
project_list = [
|
||||||
@@ -59,7 +58,7 @@ class Projects:
|
|||||||
logging.warning(f"skipping {project_dir} (skip flag set)")
|
logging.warning(f"skipping {project_dir} (skip flag set)")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if only_projects and project_id not in only_projects:
|
if len(only_projects_list) > 0 and project_id not in only_projects:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
project = Project(
|
project = Project(
|
||||||
|
|||||||
Reference in New Issue
Block a user