mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-06 11:10:24 +00: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:
parent
6a395d9a29
commit
1ef8545469
@ -30,7 +30,7 @@ proc foreach_cmdline_arg { tag func } {
|
||||
#
|
||||
proc genode_dir { } {
|
||||
global argv0;
|
||||
return [file dirname [file dirname $argv0]]
|
||||
return [file dirname [file dirname [file normalize $argv0]]]
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user