From: Andre W. <wo...@us...> - 2005-01-05 14:48:43
|
Hi Pieter, On 05.01.05, pieter claassen wrote: > I am not on the mailing list so you might have to forward this on. It seems to got posted to the mailing list without further approval. Might be due to the "in-reply-to" or something similar ... > Both pyx.def and 10pt.lfs are located in c:\python24\share\pyx Sure, they should be in the same directory. And this sounds good. Why not install pyxrc in that directory as well ... > I would keep things out of c:\windows because that is cruising for a > bruising. Only Bill and friends are supposed to write there and anyhow, > permissions might be a problem on some machines (local policy). Well, it was more like a joke of mine ... > There is a registery setting > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ProgramFilesDir > which specifies where program files are installed. That is probably a more > reasonable place to installed stuff if not under the python24 dir. > > Don't know the python installer well enough to know if it can check the > install platform before doing its thing. Oh, that's trivial. Its available via os.name. It should be "nt" for all windows versions?! That's what the doc says. > If there is a hook, then here is a link for registery query from within > python. > > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/146305 Sure we could use the registry. But I would not like to do so. We should try to keep the differences between the different plattforms small. And the user should be able to just edit the systemwide pyxrc. That's what it is for. > I would suggest if some stuff is moved to c:\{program files}\python24 then > everything must be moved there. That sounds like an installer change to > me? But that's somethink, the distutils should take care of itself. Depending on where you install Python, PyX is installed relative to that. And that's fine! Enclosed you find a new version of setup.py. I'm not sure whether you can patch files, so I send the full file. You may try whether it properly installes the pyxrc into c:\python24\share\pyx on your box. It should also set the correct full path in siteconfig.py. (I guess what you did before basically disabled the systemwide pyxrc, since it could not be found by PyX any longer.) Could you try that for me? I would really appreciate your help! André PS: BTW, there is a reason why absolut paths doesn't make sense on Windows. I just got an idea of it. There are different drive letters ... -- by _ _ _ Dr. André Wobst / \ \ / ) wo...@us..., http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript figures with Python & TeX (_/ \_)_/\_/ visit http://pyx.sourceforge.net/ |