Hey Doug

This bit of information looks like a good little tit bit, just wondering
if you would consider making it a little doc on the AG website????  

All you would need to do is create a "page" and set it as either an
"HowTo/Tutorial" or an "Other Topic".


I guess I am just trying to encourage others to submit doc's as well.

Cheers,
Jason.




-----Original Message-----
From: Douglas Kosovic [mailto:dougl...@itee.uq.edu.au] 
Sent: Friday, 11 January 2008 1:05 PM
To: Jon Johansson
Cc: ag-t...@mcs.anl.gov
Subject: RE: [AG-TECH] Python verson coexistence on 64 bit Windows?

Hi Jon,


> I installed AG 3.1 a couple of days ago on my desktop machine
> and it seems to work fine: WinXP Pro x64. Of course, AG
> requires a 32 bit version of Python 2.4.
> 
> I then installed an update to Tecplot which installed a 64 bit
> version of python 2.5. My AG was broken because the environment
> variable PYTHONHOME had its value changed from C:\Python24\
> to C:\Python25\. When I changed the variable to point to the
> older python AG worked again. Now, manually changing the
> environment variable depending on the software I want to run
> is somewhat inelegant, and I'd like to think that the packages
> are a bit more sophisticated than that. I Googled around and
> Python coexistence on Windows doesn't seem to work, but I'm hoping
> that someone here might have a better experience and be willing
> to share.

You could create a AG.cmd file that sets the env variables locally
before starting the VenueClient, with something like:

@echo off
set PYTHONHOME=C:\Python24
set PYTHONPATH=%PYTHONHOME%
set PYTHON=%PYTHONHOME%\python.exe
set PYTHONW=%PYTHONHOME%\pythonw.exe
set PATH=%PYTHONHOME%;%PATH%
start "AG" "%PYTHONW%" "C:\Program
Files\AccessGrid3\bin\VenueClient3.py"


then double click AG.cmd.


Cheers,
Doug


Reply via email to