I have installed Emacs, with all its init files, on a USB stick for use on different PCs. The init files contains paths to the USB stick itself. The problem is that the drive letter assigned for the USB stick changes from PC to PC. How can I make Emacs determine the drive letter assigned to my USB stick. store it into a variable that I can use in all paths pointing to the USB stick?
For instance my init file contains, among many others, the following line:
This will not function on a PC where the USB stick i assigned another letter, e.g.
D:. So how can I make Emacs determine which drive it starts from?
EDIT: how can I make Emacs AUTOMATICALLY determine the letter of the drive it starts from?
If my usb is assigned letter
x on one pc I want emacs to find this letter, and store it in a variable.