Skip to content

Commit 7c89d6d

Browse files
committed
Bulk generator: Rename 'get_destination_for_project' to 'get_mad_destination_for_project'.
1 parent 5d79a8d commit 7c89d6d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

misc/scripts/models-as-data/bulk_generate_mad.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def compare(a, b):
370370
return sorted(database_results, key=cmp_to_key(compare))
371371

372372

373-
def get_destination_for_project(config, name: str) -> str:
373+
def get_mad_destination_for_project(config, name: str) -> str:
374374
return os.path.join(config["destination"], name)
375375

376376

@@ -395,7 +395,7 @@ def main(config, args) -> None:
395395

396396
# Check if any of the MaD directories contain working directory changes in git
397397
for project in projects:
398-
mad_dir = get_destination_for_project(config, project["name"])
398+
mad_dir = get_mad_destination_for_project(config, project["name"])
399399
if os.path.exists(mad_dir):
400400
git_status_output = subprocess.check_output(
401401
["git", "status", "-s", mad_dir], text=True
@@ -440,7 +440,7 @@ def main(config, args) -> None:
440440

441441
# Delete the MaD directory for each project
442442
for project, database_dir in database_results:
443-
mad_dir = get_destination_for_project(config, project)
443+
mad_dir = get_mad_destination_for_project(config, project)
444444
if os.path.exists(mad_dir):
445445
print(f"Deleting existing MaD directory at {mad_dir}")
446446
subprocess.check_call(["rm", "-rf", mad_dir])

0 commit comments

Comments
 (0)