Browse Source

Merge c3a8ad8d38 into 4ce9e6f615

pull/736/merge
Thomas Senay 2 weeks ago
committed by GitHub
parent
commit
e7e492534e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      diagrams/__init__.py

+ 2
- 2
diagrams/__init__.py View File

@@ -113,7 +113,7 @@ class Diagram:
edge_attr = {}
self.name = name
if not name and not filename:
filename = "diagrams_image"
filename = os.environ.get('DIAGRAMS_FILENAME', "diagrams_image")
elif not filename:
filename = "_".join(self.name.split()).lower()
self.filename = filename
@@ -143,7 +143,7 @@ class Diagram:
else:
if not self._validate_outformat(outformat):
raise ValueError(f'"{outformat}" is not a valid output format')
self.outformat = outformat
self.outformat = os.environ.get('DIAGRAMS_OUTFORMAT', outformat)

# Merge passed in attributes
self.dot.graph_attr.update(graph_attr)


Loading…
Cancel
Save