Python Desktop Server Weblog 1.3.2003

a picture of myself

Münsterland.org

2003-03-01

Running PyDS under Windows

Hal Wine just commented on running PyDS under Windows 98 and having problems with upstreaming. After reading his problem report I think I found the reason: when running on POSIX compliant systems, I call become_daemon in PyDS/Server.py. This sets - beside other things - the current workdir to _PyDS.ROOTDIR, that is the ~/.PyDS/www/ path.

Upstreaming uses relative file specs, so it relies on this current workdir. Under non-posix systems, though, the become_daemon call is not called. That's a problem.

In 0.4.15 I put an else part into the posix check (around line 200 in PyDS/Server.py) and do a os.chdir(_PyDS.ROOTDIR) in there. This should prevent this problem, as now relative path specs work.

You can patch your copy if you want, or you can just make sure that you start the PyDS under Windows in the ~/.PyDS/www path.

There might be additional problems, as I don't have a windows version to check against. So if you run into any problems, post them here, I try to figure out what happens, if possible.

posted at 20:21:36    #
March 2003
MoTuWeThFrSaSu
      1 2
3 4 5 6 7 8 9
10111213141516
17181920212223
24252627282930
31      
Feb
2003
 Apr
2003

This is the Python Desktop Server weblog.


(Donations will be used by the author to buy stuff, fullfill selfish wishes or do other silly recreational things. You have been warned.).
The PyDS is
OSI Certified Open Source Software

Python Powered

XML-Image

© 2003-2007, Georg Bauer