Commit 7cad56d1 authored by Samuel Debionne's avatar Samuel Debionne

Fix checksipexc

Invalid path with backslash were generated
parent 3003087f
...@@ -34,7 +34,8 @@ def checksipexc(ifname, inplace=False): ...@@ -34,7 +34,8 @@ def checksipexc(ifname, inplace=False):
global raise_linenr, raise_exc global raise_linenr, raise_exc
lfname = ifname lfname = ifname
sip_fname = os.path.dirname(os.path.realpath(__file__))+'/../common/sip/Exceptions.sip' sip_fname = os.path.normpath(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../common/sip/Exceptions.sip'))
sip_fname = sip_fname.replace('\\', '/')
if lfname.startswith('/'): if lfname.startswith('/'):
sip_fname = os.path.realpath(sip_fname) sip_fname = os.path.realpath(sip_fname)
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment