Platform-independent temporary directory lookup
Brought to you by:
philikon
Hi,
I was trying to use the version 1.3.2 on Windows 2000
but the initial import of object always failed with an
OS error saying that "/tmp/RevisionManager-myproject"
was a bad path. Having a look at your source code I
spotted those two lines :
676 #XXX not portable
677 import_dir = "/tmp/RevisionManager-" + module.filename
A quick fix could be :
At line 22, insert "import tempfile"
Change line 677 to :
import_dir =
tempfile.gettempdir()+tempfile.os.sep+"RevisionManager-"
+ module.filename
This should be more portable.
Cheers for your work !
Nicolas