mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-25 08:18:30 +00:00
parent
6778b29fc0
commit
51aef2b9c7
@ -126,7 +126,7 @@ class Drawing:
|
|||||||
filename = hashlib.md5(value.encode()).hexdigest() + ".svg"
|
filename = hashlib.md5(value.encode()).hexdigest() + ".svg"
|
||||||
file_path = os.path.join(self._project.pictures_directory, filename)
|
file_path = os.path.join(self._project.pictures_directory, filename)
|
||||||
if not os.path.exists(file_path):
|
if not os.path.exists(file_path):
|
||||||
with open(file_path, "w+") as f:
|
with open(file_path, "w+", encoding="utf-8") as f:
|
||||||
f.write(value)
|
f.write(value)
|
||||||
self._svg = filename
|
self._svg = filename
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user