Unify standard and Windows version

Started by obetz, June 21, 2019, 11:28:07 AM

Previous topic - Next topic

obetz

Quote from: Phil Harvey on November 12, 2021, 08:20:13 AM
It is only the application directory that is the problem here.  The other search directories shouldn't be affected.  The standard exiftool version should look in the directory of the application (link target) for both the libraries and the config file.

My 12.36 package finds .ExifTool_config and argfiles in the application directory (beneath ExifTool.exe) and in the home directory, and not in the current directory. Tested with ExifTool in the path, with "GUI links" and even symlinks (although I doubt they are used by anobody). My extended tests also showed no abnormalities.

I just had to adjust the last two lines of my extension of the -ver option:


            if ($verbose > 8) {
                print "Current dir:    " . Cwd::getcwd() . "\n" if (eval { require Cwd });
                print "Script name \$0: $0\n";
                print "Exe name \$^X:   $^X\n";
                print "exeDir:         $Image::ExifTool::exeDir\n";
                print "exePath:        $exePath\n";
            }


Oliver

Phil Harvey

Hi Oliver,

Great, thanks for checking this.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).