Permalink
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (15 sloc) 373 Bytes
diff --git a/tk.rb b/tk.rb
--- a/tk.rb
+++ b/tk.rb
@@ -3,6 +3,11 @@
# by Yukihiro Matsumoto <matz@netlab.jp>
# use Shigehiro's tcltklib
+require 'rbconfig'
+if RbConfig::CONFIG['host_os'] =~ /mingw/
+ ENV['TCL_LIBRARY'] = File.join(RbConfig::CONFIG['libdir'], 'tcltk', 'tcl8.5')
+end
+
require 'tcltklib'
require 'tkutil'
--
1.7.4.msysgit.0