Change seperator for additonnal images directory otherwise bug on windows

This commit is contained in:
Julien Duponchelle committed 2016-09-27 17:15:59 +02:00
1 parent 2c73d40551
commit 20772a310b
5 files changed
+9 -9

No files matched your search

+4 -3
View File
@@ -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):