[Orxonox-commit 3223] r7914 - code/trunk/data/tcl
landauf at orxonox.net
landauf at orxonox.net
Sat Feb 19 16:33:50 CET 2011
Author: landauf
Date: 2011-02-19 16:33:50 +0100 (Sat, 19 Feb 2011)
New Revision: 7914
Modified:
code/trunk/data/tcl/init.tcl
Log:
since the mac_osx branch doesn't seem to get merged anytime soon, I fix this (potential) Tcl issue also in the trunk (see r7683)
Modified: code/trunk/data/tcl/init.tcl
===================================================================
--- code/trunk/data/tcl/init.tcl 2011-02-19 15:25:52 UTC (rev 7913)
+++ code/trunk/data/tcl/init.tcl 2011-02-19 15:33:50 UTC (rev 7914)
@@ -98,6 +98,11 @@
set filepath [info script]
#set ::orxonox::mediapath [string range $filepath 0 [string last "/" $filepath]]
set ::orxonox::mediapath [file dirname $filepath]
+
+if {![info exists auto_path]} {
+ set auto_path [list]
+}
+
if {[lsearch $auto_path $::orxonox::mediapath] == -1} {
lappend auto_path $::orxonox::mediapath
}
More information about the Orxonox-commit
mailing list