docutil/docsvg.py
changeset 3818 e528b11a60cc
parent 3817 3deeda82636a
child 3890 6d2d37975c7c
equal deleted inserted replaced
3817:3deeda82636a 3818:e528b11a60cc
    75 def _get_inkscape_version():
    75 def _get_inkscape_version():
    76     inkpath = get_inkscape_path()
    76     inkpath = get_inkscape_path()
    77     if inkpath is None:
    77     if inkpath is None:
    78         return None
    78         return None
    79     return list(map(int, 
    79     return list(map(int, 
    80         subprocess.check_output([inkpath,"--version"]).split()[1].split('.')))
    80         subprocess.check_output([inkpath,"--version"]).split()[1].split(b'.')))
    81 
    81 
    82 _inkscape_version = None
    82 _inkscape_version = None
    83 def get_inkscape_version():
    83 def get_inkscape_version():
    84     global _inkscape_version
    84     global _inkscape_version
    85 
    85