Skip to content

Commit ba0a4a5

Browse files
committed
[2.090517.53] 09/05/17 at 08:06 PM | 1 updated tm modules | by DashBot
1 parent 545f631 commit ba0a4a5

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

cluster-1.1.0.tm renamed to cluster-1.1.1.tm

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ namespace eval ::cluster {
33
namespace export {[a-z]*}
44

55
namespace eval cluster {}
6-
namespace eval protocol {}
6+
namespace eval protocol {}
77
}
88

99
variable ::cluster::script_dir [file dirname \
@@ -17,8 +17,8 @@ if 0 {
1717
| can still require and use the package with the included
1818
| tcl-modules folder in the repo.
1919
}
20-
if {![string match $script_dir [::tcl::tm::path list]]} {
21-
::tcl::tm::path add [file join $script_dir tcl-modules]
20+
if {![string match $::cluster::script_dir [::tcl::tm::path list]]} {
21+
::tcl::tm::path add [file join $::cluster::script_dir tcl-modules]
2222
}
2323

2424
package require bpacket
@@ -113,16 +113,15 @@ if 0 {
113113
| the proc is removed via [rename]
114114
}
115115
proc ::cluster::source {} {
116-
set script_dir [file dirname [file normalize [info script]]]
117-
set classes_directory [file join $script_dir cluster classes]
116+
set classes_directory [file join $::cluster::script_dir cluster classes]
118117
foreach file [glob -directory $classes_directory *.tcl] {
119118
uplevel #0 [list source $file]
120119
}
121-
set protocol_directory [file join $script_dir cluster protocols]
120+
set protocol_directory [file join $::cluster::script_dir cluster protocols]
122121
foreach file [glob -directory $protocol_directory *.tcl] {
123122
uplevel #0 [list source $file]
124123
}
125-
set utils_directory [file join [file dirname $script_dir cluster utils]
124+
set utils_directory [file join [file dirname $::cluster::script_dir cluster utils]
126125
foreach file [glob -directory $utils_directory *.tcl] {
127126
if {[string match *general.tcl $file]} { continue }
128127
uplevel #0 [list source $file]

0 commit comments

Comments
 (0)