validate:launcher: Add support for relative path while providing file path

Instead of providing full absolute path while validating the file, should be
able to provide the relative path with respect to the present directory.

https://bugzilla.gnome.org/show_bug.cgi?id=753494
This commit is contained in:
Vineeth TM 2015-08-11 16:41:20 +09:00 committed by Tim-Philipp Müller
parent 15e7f1bbfd
commit 99f9f3f408

View file

@ -683,6 +683,7 @@ not been tested and explicitely activated if you set use --wanted-tests ALL""")
for path in self.options.paths:
if os.path.isfile(path):
path = os.path.abspath(path)
self._discover_file(path2url(path), path)
else:
for root, dirs, files in os.walk(path):