PaulBrack / Yamato

SWATH-QC metrics
Apache License 2.0
1 stars 1 forks source link

Respect the current directory at program run time for file paths #135

Closed Ozzard closed 4 years ago

Ozzard commented 4 years ago

At present, running: SwaMe.Console -i ./aFile.wiff fails with a file not found exception even if the file exists in the current directory. The backtrace indicates that the code is trying to find the file in a run-specific subdirectory; it would appear that the code changes directory before opening the input file, therefore requiring an absolute path (or a relative path from the subdirectory).

Expected behaviour: as essentially every other program since the MULTICS days, resolve all relative paths relative to the current directory at program launch.

PaulBrack commented 4 years ago

@Ozzard can you test please?

Ozzard commented 4 years ago

Appears to be working - many thanks!