RE: Importing modules through directory shortcuts on Windows

2006-04-28 Thread Tim Golden
[Roger Upole] | [... snipped ugly code ...] Thanks; I'll have to find the time to experiment with that a bit. TJG This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more inform

Re: Importing modules through directory shortcuts on Windows

2006-04-27 Thread Roger Upole
Warning: Ugly code ahead import win32con, winioctlcon, winnt import win32file, win32api import os, struct temp_dir=win32api.GetTempPath() temp1=win32api.GetTempFileName(temp_dir,'rpp')[0] win32file.DeleteFile(temp1) os.mkdir(temp1) temp2=win32api.GetTempFileName(temp_dir,'rpp')[0] win32file.Delet

RE: Importing modules through directory shortcuts on Windows

2006-04-27 Thread Tim Golden
[Roger Upole] | You can use win32file.DeviceIoControl to link directories. | I can post some code to do so if anyone's interested. I'd certainly be interested... Thanks TJG This e-mail has been scanned for all viruses by S

Re: Importing modules through directory shortcuts on Windows

2006-04-27 Thread Roger Upole
You can use win32file.DeviceIoControl to link directories. I can post some code to do so if anyone's interested. Roger "Brian Quinlan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Recently, I became responsible for maintaining some Python code, which was > organized as f

Re: Importing modules through directory shortcuts on Windows

2006-04-26 Thread Duncan Booth
Brian Quinlan wrote: > Anyway, the problem is that Windows does not have a symlink facility to > accommodate this (AFAIK) and the Python import mechanism does not > resolve shortcuts. Windows does have the equivalent of symlinks provided you are running on NTFS with Windows 2000 or later (Goog

Re: Importing modules through directory shortcuts on Windows

2006-04-26 Thread Thomas Heller
Brian Quinlan wrote: > Recently, I became responsible for maintaining some Python code, which > was organized as follows: > > user/pylib > ui > ... > project2/pylib > ui > ... > project3/pylib > ui > ... > python-packages/user => /user/pylib >

Importing modules through directory shortcuts on Windows

2006-04-26 Thread Brian Quinlan
Recently, I became responsible for maintaining some Python code, which was organized as follows: user/pylib ui ... project2/pylib ui ... project3/pylib ui ... python-packages/user => /user/pylib project2 => /project2/pylib