Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use absolute path for discovery doc
Browse files Browse the repository at this point in the history
andreamlin committed Jul 11, 2018
1 parent 91d3cd8 commit 05dec7f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions artman/tasks/gapic_tasks.py
Original file line number Diff line number Diff line change
@@ -128,14 +128,13 @@ class DiscoGapicCodeGenTask(task_base.TaskBase):

def execute(self, language, toolkit_path, discovery_doc,
gapic_yaml, package_metadata_yaml,
gapic_code_dir, api_name, api_version, organization_name):
gapic_code_dir, api_name, api_version, organization_name, root_dir):
existing = glob.glob('%s/*' % gapic_code_dir)
if existing:
self.exec_command(['rm', '-r'] + existing)
gapic_args = ['--gapic_yaml=' + os.path.abspath(gapic_yaml)]
args = [
# TODO(andrealin): Get right absolute path for discovery_doc
'--discovery_doc=' + os.path.abspath(discovery_doc),
'--discovery_doc=' + os.path.join(root_dir, discovery_doc),
'--package_yaml2=' + os.path.abspath(package_metadata_yaml),
'--output=' + os.path.abspath(gapic_code_dir),
'--language=' + language,

0 comments on commit 05dec7f

Please sign in to comment.