]> code.ossystems Code Review - openembedded-core.git/commitdiff
runqemu: Also specialcase resolution of '.' to the file's location
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 21 Nov 2017 17:56:40 +0000 (17:56 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Dec 2017 17:14:35 +0000 (17:14 +0000)
Similarly to handling "../", handle "." to resovle to the qemuconf
file's current directory.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 33418ed064fe9cff5b4803f09135a81d9170c189)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
scripts/runqemu

index ef6d5f0012b2ab75070d1241004ecd8340c4b964..72283842716b28a30cf53383e2b99e4a915a93b2 100755 (executable)
@@ -728,6 +728,8 @@ class BaseConfig(object):
             k_upper = k.upper()
             if v.startswith("../"):
                 v = os.path.abspath(os.path.dirname(self.qemuboot) + "/" + v)
+            elif v == ".":
+                v = os.path.dirname(self.qemuboot)
             self.set(k_upper, v)
 
     def validate_paths(self):