}
#
# NOTE: Set the local root directory of the source checkout (i.e. of
# Eagle or whatever project the Eagle binaries are being used by).
#
if {![info exists root_path]} then {
set pattern {^local-root:\s+(.*)\s+$}
if {[catch {set exec [exec -- fossil info]}] || \
[regexp -line -- $pattern $exec dummy directory] == 0} then {
#
# NOTE: We could not query local root directory of the source checkout
# from Fossil; therefore, attempt to make an educated guess. This
# value will probably be wrong for any project(s) other than Eagle.

|

71
72
73
74
75
76
77
78
79
80
81
82
83
84
85

}
#
# NOTE: Set the local root directory of the source checkout (i.e. of
# Eagle or whatever project the Eagle binaries are being used by).
#
if {![info exists root_path]} then {
set pattern {^local-root:\s+?(.*?)\s+?$}
if {[catch {set exec [exec -- fossil info]}] || \
[regexp -line -- $pattern $exec dummy directory] == 0} then {
#
# NOTE: We could not query local root directory of the source checkout
# from Fossil; therefore, attempt to make an educated guess. This
# value will probably be wrong for any project(s) other than Eagle.