Permalink
Browse files

Use CodeLoader.require in bin/apricot instead of directly compiling.

  • Loading branch information...
Scott Olson
Scott Olson committed Apr 22, 2013
1 parent 3e4e028 commit 26c5c97f11025dc6454f1910577769b6fcf49d70
Showing with 1 addition and 2 deletions.
  1. +1 −2 bin/apricot
View
@@ -35,7 +35,6 @@ evals.each do |type, *args|
when :stdin
Apricot::Compiler.eval(STDIN.read, "(stdin)", 1)
when :file
- # The code is executed as it compiles.
- Apricot::Compiler.compile(args.first)
+ Apricot::CodeLoader.require(File.expand_path(args.first))
end
end

0 comments on commit 26c5c97

Please sign in to comment.