On Feb 2, 9:57 pm, Largo84 <[email protected]> wrote: > How do I make sure that Leo launched from the thumb drive > knows to refer to the PortablePython version on the drive?
Just call launchLeo.py with that one python executable that you need. When you run launcLeo.py directly, the operating system finds a python executable in PATH and runs leo with that interpreter. But you can specify the interpreter explicitly, but having a wrapper (shell script, batch file, whatever) that does "python launchLeo.py", thus specifying the interpreter explicitly. > Also, Leo sets a home environment on the main drive, > I don't know how to configure that to be located on the portable > drive when the drive letter may be different depending on > which computer you plug it into. I don't think this is a leo issue as well. It's the duty of the operating system to provide easy facilities that would allow the user to change the home directory. In linux, calling leo with the following command "HOME=/tmp python launchLeo.py" will create the hidden .leo directory in /tmp, because this hack alters the HOME environment variable during the program execution. While I've never used a mac, I wouldn't be surprised if the same hack would work there too. In windows you could try to remap a directory to a given disk drive by using the subst command. Another way would be to try using a symbolic link, which the NTFS filesystems are claimed to support. I wouldn't expect leo itself to become 100% customizable in every possible situation at the expense of complicating its code immensely, given the differences in many operating systems. -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
