[documancer] Documancer not running on Windows 98 SE

[email protected] Mon, 22 Mar 2004 14:04:33 +0100 (MET)
Newsgroups gmane.text.documancer.user
Message-ID <[email protected]>
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



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click