lib/pcr-ruby.rb in pcr-ruby-0.0.1 vs lib/pcr-ruby.rb in pcr-ruby-0.0.2

- old
+ new

@@ -95,10 +95,10 @@ #API class handles token and api url, so both are easily changed class API attr_accessor :token, :api_endpt def initialize() - @token = File.open('token.dat', &:readline) + @token = File.open(File.join(File.dirname(__FILE__), '..', 'token.dat', &:readline) @api_endpt = "http://api.penncoursereview.com/v1/" end end #These errors serve as more specific exceptions so we know where exactly errors are coming from. \ No newline at end of file