From 16f5086891b157d679673946c41ba9d4e77377bc Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Tue, 16 Jul 2013 17:40:11 -0700 Subject: [PATCH] usingmodule()! Who would have guessed! --- test/perf/perfutil.jl | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/test/perf/perfutil.jl b/test/perf/perfutil.jl index a6637ed1ac584..0ebb5f08af92d 100644 --- a/test/perf/perfutil.jl +++ b/test/perf/perfutil.jl @@ -2,15 +2,14 @@ const ntrials = 5 print_output = isempty(ARGS) codespeed = length(ARGS) > 0 && ARGS[1] == "codespeed" -try - Pkg.init() - Pkg.add("JSON") - Pkg.add("Curl") -end - -if( codespeed ) - using JSON - using Curl +if codespeed + try + Pkg.init() + Pkg.add("JSON") + Pkg.add("Curl") + end + usingmodule("JSON") + usingmodule("Curl") # Ensure that we've got the environment variables we want: if !haskey(ENV, "JULIA_FLAVOR")