From dd57be7d2e3d6cf4c400ae059c5ece4abbca3a82 Mon Sep 17 00:00:00 2001 From: Christof Stocker Date: Wed, 21 Mar 2018 20:24:39 +0100 Subject: [PATCH] use __DIR__ instead of __FILE__ --- src/utils.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.jl b/src/utils.jl index ceb5f1b7..2c1718d3 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -8,7 +8,7 @@ about the effects of the applied augmentation operations. It is thus well suited to prototype an augmentation pipeline, because it makes it easy to see what kind of effects one can achieve with it. """ -testpattern() = load(joinpath(dirname(@__FILE__()), "..", "resources", "testpattern.png")) +testpattern() = load(joinpath(@__DIR__, "..", "resources", "testpattern.png")) function use_testpattern() info("No custom image specifed. Using \"testpattern()\" for demonstration.")