mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
autopilot: improve detection of genode dir
If the script is executed with an obscure path (e.g., '../tool/autopilot'), just taking the argv0 string fails. Therefore, the file path is now normalized prior to the directory detection.
This commit is contained in:
committed by
Norman Feske
parent
6a395d9a29
commit
1ef8545469
@@ -30,7 +30,7 @@ proc foreach_cmdline_arg { tag func } {
|
|||||||
#
|
#
|
||||||
proc genode_dir { } {
|
proc genode_dir { } {
|
||||||
global argv0;
|
global argv0;
|
||||||
return [file dirname [file dirname $argv0]]
|
return [file dirname [file dirname [file normalize $argv0]]]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user