Skip to content

Commit

Permalink
use __DIR__ instead of __FILE__
Browse files Browse the repository at this point in the history
  • Loading branch information
Evizero committed Mar 21, 2018
1 parent dd367d4 commit dd57be7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit dd57be7

Please sign in to comment.