Hi,

It's very simple to do it. First install everything you need (Python, PyGTK, GTK+, py2exe etc.) and copy to your Flash drive. The GTK binaries copy to a "GTK" directory in Python's folder.

Then start your PyGTK programs with a .bat file similar to this one:

@ECHO OFF

set DRIVE=%~d0
set BASEPATH=%DRIVE%\path_to_python\
set PYTHONPATH=%BASEPATH%

PATH=%PYTHONPATH%;%PATH%;
PATH=%PYTHONPATH%\DLLs;%PATH%;
PATH=%PYTHONPATH%\Lib\site-packages\pythonwin;%PATH%;
PATH=%PYTHONPATH%\Lib\site-packages\pywin32_system32;%PATH%;
PATH=%PYTHONPATH%\Lib\site-packages\win32;%PATH%;
PATH=%BASEPATH%\gtk\bin;%PATH%;
script
%DRIVE%

python.exe %1 %2 %3 %4 %5 %6 %7 %8

Then start your program by running "portable_python.bat your_script.py".

Regards,
Vladimir


Dne 23.11.2010 13:53, Elias napsal(a):

Sorry, but I`m crazy for one pygtk for may Python Portable and still i can´t to get anywere. Can you help me.

Thanks

Elias


_______________________________________________
pygtk mailing [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ:http://faq.pygtk.org/

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to