diff --git a/bin/extractkernel b/bin/extractkernel index 43d9627646..fe236c7a49 100755 --- a/bin/extractkernel +++ b/bin/extractkernel @@ -10,7 +10,7 @@ use List::Util qw(max); my $base_dir; BEGIN { - $base_dir = Cwd::realpath( dirname(__FILE__) ); + $base_dir = dirname( Cwd::realpath(__FILE__) ); } use lib "$base_dir/"; use hipvars; diff --git a/bin/hipcc b/bin/hipcc index b8f2a3712a..32f1411a77 100755 --- a/bin/hipcc +++ b/bin/hipcc @@ -95,7 +95,7 @@ sub delete_temp_dirs { my $base_dir; BEGIN { - $base_dir = Cwd::realpath( dirname(__FILE__) ); + $base_dir = dirname(Cwd::realpath(__FILE__) ); } use lib "$base_dir/"; use hipvars; diff --git a/bin/hipconfig b/bin/hipconfig index 04bed13fa9..c9c5b32b15 100755 --- a/bin/hipconfig +++ b/bin/hipconfig @@ -12,7 +12,7 @@ use File::Basename; my $base_dir; BEGIN { - $base_dir = Cwd::realpath( dirname(__FILE__) ); + $base_dir = dirname( Cwd::realpath(__FILE__) ); } use lib "$base_dir/"; use hipvars;