| 
17
18
19
20
21
22
23
24
25
2627
2829
30
31
32
33
34
35
36 | 
#
# NOTE: Use our own namespace here because even though we do not directly
#       support namespaces ourselves, we do not want to pollute the global
#       namespace if this script actually ends up being evaluated in Tcl.
#
namespace eval ::PackageRepository {
  #
  # #NOTE:Whenrunningfromthe source tree, modify the auto-path to include
  #the "Eagle1.0" directory within externals.lappend ::auto_path [file join [file dirname [file dirname \  if {1} then {        }
  #
  # NOTE: This package requires several packages from the Eagle core script
  #       library, even when it is being used by native Tcl.  If necessary,
  #       prior to evaluating this file in native Tcl, its auto-path should
  #       be modified to include an "Eagle1.0" directory (i.e. a directory[file dirname [info script]]]] externals Eagle lib Eagle1.0] | 
>
>
>
|
|
>
|
>
>
>
|
 | 
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
 | 
#
# NOTE: Use our own namespace here because even though we do not directly
#       support namespaces ourselves, we do not want to pollute the global
#       namespace if this script actually ends up being evaluated in Tcl.
#
namespace eval ::PackageRepository {
  #
  # NOTE: If there is an "Eagle1.0" sub-directory present right beneath where
  #       this script was evaluated from, add it to the auto-path; otherwise,
  #       we assume that we are running from inside the source tree.  In that
  #       case, modify the auto-path to include the "Eagle1.0" sub-directory
  #       within "externals".
  #
  variable pkgr_path [file normalize [file dirname [info script]]]
  if {[file isdirectory [file join $pkgr_path Eagle1.0]]} then {
    lappend ::auto_path [file join $pkgr_path Eagle1.0]
  } else {
    lappend ::auto_path [file join [file dirname [file dirname \
        $pkgr_path]] externals Eagle lib Eagle1.0]
  }
  #
  # NOTE: This package requires several packages from the Eagle core script
  #       library, even when it is being used by native Tcl.  If necessary,
  #       prior to evaluating this file in native Tcl, its auto-path should
  #       be modified to include an "Eagle1.0" directory (i.e. a directory
 |