Commit 9a8cec27 authored by wbond's avatar wbond

Fixed a bug with the migrator not creating the repository/ subfolder

parent 733d8898
import json import json
import re import re
import os
from collections import OrderedDict from collections import OrderedDict
from urllib.request import urlopen from urllib.request import urlopen
...@@ -102,6 +103,9 @@ with open(old_repositories_json_path, encoding='utf-8') as of: ...@@ -102,6 +103,9 @@ with open(old_repositories_json_path, encoding='utf-8') as of:
includes = [] includes = []
if not os.path.exists(new_repository_subfolder_path):
os.mkdir(new_repository_subfolder_path)
for letter in names: for letter in names:
include_path = '%s%s.json' % (new_repository_subfolder_path, letter) include_path = '%s%s.json' % (new_repository_subfolder_path, letter)
includes.append(include_path) includes.append(include_path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment