8000 Clarifying comments on graphviz · mikeguzman/python-docs-samples@165df0b · GitHub
[go: up one dir, main page]

Skip to content

Commit 165df0b

Browse files
committed
Clarifying comments on graphviz
1 parent 3e1b809 commit 165df0b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

run/system-package/main.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,15 @@ def index():
4848

4949
# [START run_system_package_exec]
5050
def create_diagram(dot):
51+
# Generates a diagram based on a graphviz DOT diagram description.
5152
if not dot:
5253
raise Exception('syntax: no graphviz definition provided')
5354

54-
dot_args = [ # usr/bin/dot is a system package in the container
55-
'/usr/bin/dot', # Command to run
56-
'-Glabel=Made on Cloud Run', # Args
55+
dot_args = [ # Uses local `dot` binary from Graphviz:
56+
# https://graphviz.gitlab.io
57+
'/usr/bin/dot',
58+
# Adds a watermark to the dot graphic.
59+
'-Glabel=Made on Cloud Run',
5760
'-Gfontsize=10',
5861
'-Glabeljust=right',
5962
'-Glabelloc=bottom',

0 commit comments

Comments
 (0)
0