lib/sprout.rb in sprout-0.5.10 vs lib/sprout.rb in sprout-0.5.11
- old
+ new
@@ -193,10 +193,10 @@
def Sprout.project_path=(path)
@@project_path = path
end
def Sprout.get_project_path(path)
- if(path.nil? || path == '/')
+ if(path.nil? || path == '/' || path.match(/[A-Z]\:\//))
return nil
end
@@default_rakefiles.each do |file|
if(File.exists?(File.join(path, file)))
return path