[documancer] Documancer not running on Windows 98 SE
Status: Beta
Brought to you by:
vaclavslavik
From: <a.u...@gm...> - 2004-03-22 13:04:45
|
Hello, I recently tried to install Documancer 0.2.3 on a PC with Windows 98 SE. Installation went O.K., but it wouldn't start up. After a bit of fiddling around, I tracked it down to a 'bug' in the file "utils.py": <code> def getConfigDir(): cdir = os.path.expanduser('~/.documancer/') if not os.path.isdir(cdir): os.mkdir(cdir) return cdir </code> os.path.expanduser doesn't work properly under Windows 98. After I replaced the second line by the following, <code> cdir = os.path.expanduser('C:/.documancer/') </code> the program started as it should. It seems that os.path.expanduser only works correct under Win95/NT (see below). Maybe there is another trick to get the user home directory under 98SE. If not, replacing '~' by 'C:' should do. Python help said the following: >>> help(os.path) Help on module ntpath: NAME ntpath - Common pathname manipulations, WindowsNT/95 version. [...] >>> help(os.path.expanduser) Help on function expanduser: expanduser(path) Expand ~ and ~user constructs. If user or $HOME is unknown, do nothing. Best regards, Johannes Loehnert -- +++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++ 100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz |