Skip to content

Commit

Permalink
nevermind on adding to discovery gapic
Browse files Browse the repository at this point in the history
  • Loading branch information
crwilcox committed Jan 10, 2019
1 parent 078ea19 commit 3989b0c
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions synthtool/gcp/discogapic_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ def _generate_code(
language,
config_path=None,
artman_output_name=None,
include_protos=False,
):
# map the language to the artman argument and subdir of genfiles
GENERATE_FLAG_LANGUAGE = {
Expand Down Expand Up @@ -117,17 +116,6 @@ def _generate_code(

log.success(f"Generated code into {genfiles}.")

# Get the *.protos files and put them in a protos dir in the output
if include_protos:
import shutil

source_dir = googleapis / config_path.parent
proto_files = source_dir.glob("**/*.proto")
os.mkdir(genfiles / "protos")
for i in proto_files:
shutil.copyfile(i, genfiles / "protos" / i.name)
log.success(f"Placed proto files into {genfiles}/protos.")

_tracked_paths.add(genfiles)
return genfiles

Expand Down

0 comments on commit 3989b0c

Please sign in to comment.