Skip to content

Commit d1875c8

Browse files
committed
Don't require trailing slash on LEARN_GUIDE_REPO
1 parent 6f9a5bc commit d1875c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python_generator/get_imports.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def ensure_latest_bundle():
103103

104104
def get_files_for_project(project_name):
105105
found_files = set()
106-
project_dir = "{}{}/".format(LEARN_GUIDE_REPO, project_name)
106+
project_dir = "{}/{}/".format(LEARN_GUIDE_REPO, project_name)
107107
for file in os.listdir(project_dir):
108108
if "." in file:
109109
cur_extension = file.split(".")[-1]
@@ -149,7 +149,7 @@ def has_py_file(dir):
149149
return False
150150
all_projects = get_learn_guide_projects()
151151
for project in all_projects:
152-
project_dir = "{}{}/".format(LEARN_GUIDE_REPO, project)
152+
project_dir = "{}/{}/".format(LEARN_GUIDE_REPO, project)
153153
try:
154154
if has_py_file(project_dir):
155155
cp_projects.append(project)

0 commit comments

Comments
 (0)