Clear custom-targets uppon setting new taregts.json location

pull/4103/head
Jimmy Brisson 2017-04-07 12:00:33 -05:00 committed by Andrew Leech
parent 2540f01d26
commit 49645b44d8
1 changed files with 1 additions and 0 deletions

View File

@ -169,6 +169,7 @@ class Target(namedtuple("Target", "name json_data resolution_order resolution_or
"""Set the location of the targets.json file"""
Target.__targets_json_location = (location or
Target.__targets_json_location_default)
Target.__extra_target_json_files = []
# Invalidate caches, since the location of the JSON file changed
CACHES.clear()