GITC: Pull GITC Manifest Dir from the config.
Updates the repo launcher and gitc_utils to pull the manifest
directory location out of the gitc config file.
Change-Id: Id08381b8a7d61962093d5cddcb3ff6afbb13004b
diff --git a/subcmds/gitc_init.py b/subcmds/gitc_init.py
index 92b34f7..c0568ca 100644
--- a/subcmds/gitc_init.py
+++ b/subcmds/gitc_init.py
@@ -59,10 +59,10 @@
if not opt.gitc_client:
print('fatal: gitc client (-c) is required', file=sys.stderr)
sys.exit(1)
- self.client_dir = os.path.join(gitc_utils.GITC_MANIFEST_DIR,
+ self.client_dir = os.path.join(gitc_utils.get_gitc_manifest_dir(),
opt.gitc_client)
- if not os.path.exists(gitc_utils.GITC_MANIFEST_DIR):
- os.makedirs(gitc_utils.GITC_MANIFEST_DIR)
+ if not os.path.exists(gitc_utils.get_gitc_manifest_dir()):
+ os.makedirs(gitc_utils.get_gitc_manifest_dir())
if not os.path.exists(self.client_dir):
os.mkdir(self.client_dir)
super(GitcInit, self).Execute(opt, args)