summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-08-19 11:27:15 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-08-19 12:47:59 +0200
commitc79efeb66f7951305d0334bc288aee1c571a8728 (patch)
tree14e332511a8cce4108ab3143b14e832ea66c40ae /scripting
parented8dc2fcf8faa90657d500ec3b5d06e1352d8e82 (diff)
Improve check for absolute URI
Change-Id: I4dee44832107f72f8f3fb68554428dc1e646c346 Reviewed-on: https://gerrit.libreoffice.org/77706 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'scripting')
-rw-r--r--scripting/source/pyprov/pythonscript.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripting/source/pyprov/pythonscript.py b/scripting/source/pyprov/pythonscript.py
index bd2aa3e1670e..82973266a2b0 100644
--- a/scripting/source/pyprov/pythonscript.py
+++ b/scripting/source/pyprov/pythonscript.py
@@ -238,7 +238,7 @@ class MyUriHelper:
log.debug( message )
raise RuntimeException( message, self.ctx )
- if xFileUri.isAbsolute():
+ if not xFileUri.hasRelativePath():
message = "pythonscript: an absolute uri is invalid '" + sFileUri+ "'"
log.debug( message )
raise RuntimeException( message, self.ctx )