Hi,
Sorry y hadn't been enought specific. The problem was on the images URLs.
I fixed it with this function:
def fix_qml_rel_urls(self, url):
"""
Replaces the QML URLs with plugin relative URLs
:return:
"""
plugin_dir = os.path.dirname(os.path.realpa
Hi Xavier
This should give you the path to your plugin's installation folder:
os.path.dirname(os.path.realpath(__file__))
Hope this is what you need.
Tom
-
Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/I
Hi,
I'm working on a Qgis plugin that includes styles to apply on the layers
that it creates.
My problem is that I dont find the way to use plugin relative URLs on the
QML file.
I also tried another startegy using the resources.py and include the images
on the resources.py but it dont worked.
A