mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Change seperator for additonnal images directory otherwise bug on windows
This commit is contained in:
5 files changed
+9
-9
No files matched your search
@@ -19,15 +19,16 @@
|
||||
import re
|
||||
import os
|
||||
import textwrap
|
||||
import pathlib
|
||||
import posixpath
|
||||
|
||||
|
||||
def force_unix_path(path):
|
||||
"""
|
||||
:param path: Path to convert
|
||||
"""
|
||||
|
||||
p = pathlib.Path(os.path.normpath(path))
|
||||
return p.as_posix()
|
||||
path = path.replace("\\", "/")
|
||||
return posixpath.normpath(path)
|
||||
|
||||
|
||||
def macaddress_to_int(mac_address):
|
||||
|
||||
Reference in new issue
Block a user