<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -848,7 +848,8 @@ module Sinatra
         :views =&gt; root + '/views',
         :public =&gt; root + '/public',
         :sessions =&gt; false,
-        :logging =&gt; true
+        :logging =&gt; true,
+        :app_file =&gt; $0
       }
     end
     
@@ -932,7 +933,7 @@ module Sinatra
       @reloading = true
       clearables.each(&amp;:clear)
       load_default_events!
-      Kernel.load $0
+      Kernel.load Sinatra.options.app_file
       @reloading = false
       Environment.setup!
     end</diff>
      <filename>lib/sinatra.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3588b55bc17f1e8ab359241aa5a532dd25cc869b</id>
    </parent>
  </parents>
  <author>
    <name>Chris Schneider</name>
    <email>chris@christopher-schneider.com</email>
  </author>
  <url>http://github.com/bmizerany/sinatra/commit/174d9c8a25b80eef9b92dd4054579ed5788e81e1</url>
  <id>174d9c8a25b80eef9b92dd4054579ed5788e81e1</id>
  <committed-date>2008-05-18T10:30:46-07:00</committed-date>
  <authored-date>2008-05-18T10:18:42-07:00</authored-date>
  <message>Kernel.load $0 breaks when $0 is not the file with sinatra routes, add an :app_file option to define which file to reload</message>
  <tree>eff1649540cee477ebd44f22e692f24f85660efe</tree>
  <committer>
    <name>Chris Schneider</name>
    <email>chris@christopher-schneider.com</email>
  </committer>
</commit>
