mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-29 15:44:02 +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]]]
|
||||
}
|
||||
|
||||
|
||||
@ -325,7 +325,7 @@ foreach platform $platforms {
|
||||
if {[execute_run_script $platform $run_script]} {
|
||||
puts stderr "-> OK"
|
||||
} else {
|
||||
|
||||
|
||||
if {[build_failed_because_of_missing_run_script $platform $run_script]} {
|
||||
puts stderr "-> UNAVAILABLE"
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user