dwanthny:
Apologies. I just read the forum title 'Development' and assumed it was totally self explanatory.
kovidgoyal:
- 'using relative paths is unsafe': Excuse my ignorance, but why?
- 'Relative to what': To calibre's portable executable. Works for me, I do it all the time; but as stated, I get a very cluttered library menu. It keeps the reference by relative path, but creates a double reference by full path, thus I end up with 2+ menu options for accessing the same library.
- 'And how do you ensure there are not duplicates': Well, they're all starting from the same point, the calibre-portable executable. os.path does contain methods for checking if two paths are equivalent, even relative ones.
- 'You can use the calibre-portable.bat file...starts with': Thats part of the issue. 'starts with'. But lets say I maintain different libraries for different family members and their widely varied interests/ebook-devices. It is far easier to use different libraries than a mixture of tags and formats in one. So I need to switch between them.