lib/rbhive/connection.rb in rbhive-0.5.1 vs lib/rbhive/connection.rb in rbhive-0.5.2
- old
+ new
@@ -1,8 +1,8 @@
# suppress warnings
old_verbose, $VERBOSE = $VERBOSE, nil
# require thrift autogenerated files
-require File.join(File.dirname(__FILE__), *%w[.. thrift thrift_hive])
+require File.join(File.split(File.dirname(__FILE__)).first, *%w[thrift thrift_hive])
# require 'thrift'
# restore warnings
$VERBOSE = old_verbose
module RBHive