Center-for-Research-Libraries / crl-serials-validator

Validate bibliographic and holdings data for shared print.
GNU General Public License v3.0
0 stars 1 forks source link

Default Windows CRL folder not used when running under Windows Subsystem for Linux #52

Open nflorin opened 2 years ago

nflorin commented 2 years ago

Under Windows the main CRL folder (for API keys, the MARC database) should be found at something like C:\Users\nflorin\CRL. Under WSL the scripts look for a folder in the standard Linux location /home/nflorin/CRL, while it should probably look for the Windows folder at something like /mnt/c/Users/nflorin/CRL.

A problem here would be in finding the Windows folder if the WSL virtual machine has a different user name than the Windows login. In that case we'll have to fail gracefully and allow the use of two separate folders.

Fixing this will mean changing the default in validator_data.py.

nflorin commented 2 years ago

Another consideration -- should Windows and WSL be considered separate installs and thus have separate CRL folders?