# Path: rst2pdf/log.py
# def nodeid(node):


from copy import copy
from os.path import abspath, dirname
from urllib.request import urlretrieve
from PIL import Image as PILImage
from reportlab.platypus.flowables import Image, Flowable
from reportlab.lib.units import cm, inch
from .log import log, nodeid
    from .svgimage import SVGImage
import glob
import os
import sys
# -*- coding: utf-8 -*-




try:
except ImportError:
    # svglib may optionally not be installed, which causes this error
    SVGImage = None

# find base path
if hasattr(sys, 'frozen'):
    PATH = abspath(dirname(sys.executable))
else:
    PATH = abspath(dirname(__file__))

missing = os.path.join(PATH, 'images', 'image-missing.jpg')


def defaultimage(
    filename,

# Path: rst2pdf/log.py
# def nodeid(node):


# Path: rst2pdf/image.py
from copy import copy
from os.path import abspath, dirname
from urllib.request import urlretrieve
from PIL import Image as PILImage
from reportlab.platypus.flowables import Image, Flowable
from reportlab.lib.units import cm, inch
from .log import log, nodeid
    from .svgimage import SVGImage
import glob
import os
import sys

# -*- coding: utf-8 -*-




try:
except ImportError:
    # svglib may optionally not be installed, which causes this error
    SVGImage = None

# find base path
if hasattr(sys, 'frozen'):
    PATH = abspath(dirname(sys.executable))
else:
    PATH = abspath(dirname(__file__))

missing = os.path.join(PATH, 'images', 'image-missing.jpg')


def defaultimage(
    filename,

    width=None,