Skip to content

Instantly share code, notes, and snippets.

@joshm1
Created July 26, 2010 15:50
Show Gist options
  • Save joshm1/490731 to your computer and use it in GitHub Desktop.
Save joshm1/490731 to your computer and use it in GitHub Desktop.
IS_JAR = (File.dirname(__FILE__) =~ /^jar:/) != nil
if IS_JAR
require 'project'
require 'project/project'
require 'project/config'
else
require File.expand_path(File.join(File.dirname(__FILE__),
%w(.. project)))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment