diff --git a/lib/sinatra.rb b/lib/sinatra.rb
index <HASH>..<HASH> 100644
--- a/lib/sinatra.rb
+++ b/lib/sinatra.rb
@@ -1,3 +1,4 @@
+$LOAD_PATH.unshift File.dirname(__FILE__)
 require 'sinatra/base'
 require 'sinatra/main'
 require 'sinatra/compat'
add lib dir to load path, for backward compatibility