浏览代码

Merge c3a8ad8d38 into 4ce9e6f615

pull/736/merge
Thomas Senay 2 周前
committed by GitHub
父节点
当前提交
e7e492534e
找不到此签名对应的密钥 GPG 密钥 ID: B5690EEEBB952194
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      diagrams/__init__.py

+ 2
- 2
diagrams/__init__.py 查看文件

@@ -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)


正在加载...
取消
保存