mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-26 00:38:10 +00:00
parent
febf0f7839
commit
44307b43b9
@ -556,9 +556,9 @@ class Project:
|
|||||||
# We merge the data from all server in the same project-files directory
|
# We merge the data from all server in the same project-files directory
|
||||||
vm_directory = os.path.join(self._path, "servers", "vm")
|
vm_directory = os.path.join(self._path, "servers", "vm")
|
||||||
if os.path.commonprefix([root, vm_directory]) == vm_directory:
|
if os.path.commonprefix([root, vm_directory]) == vm_directory:
|
||||||
z.write(path, os.path.relpath(path, vm_directory))
|
z.write(path, os.path.relpath(path, vm_directory), compress_type=zipfile.ZIP_DEFLATED)
|
||||||
else:
|
else:
|
||||||
z.write(path, os.path.relpath(path, self._path))
|
z.write(path, os.path.relpath(path, self._path), compress_type=zipfile.ZIP_DEFLATED)
|
||||||
return z
|
return z
|
||||||
|
|
||||||
def _export_images(self, image, type, z):
|
def _export_images(self, image, type, z):
|
||||||
|
Loading…
Reference in New Issue
Block a user