Skip to content

Commit

Permalink
Merge pull request #31 from ponceta/patch-1
Browse files Browse the repository at this point in the history
Fix gui svg path on windows
  • Loading branch information
m-kuhn authored Dec 13, 2018
2 parents f95f8af + 87af5da commit cacacec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gui/qgepplotsvgwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ def __init__(self, parent, network_analyzer: QgepGraphManager, url: str=None):

layout = QVBoxLayout(self)
if url is None:
default_url = os.path.abspath(os.path.join(plugin_root_path(), 'svgprofile', 'index.html'))
# Starting with QGIS 3.4, QWebView requires paths with / even on windows.
default_url = plugin_root_path().replace('\\', '/') + '/svgprofile/index.html'
url = settings.value("/QGEP/SvgProfilePath", default_url)
url = 'file://' + url
url = 'file:///' + url

developer_mode = settings.value("/QGEP/DeveloperMode", False, type=bool)

Expand Down

0 comments on commit cacacec

Please sign in to comment.