[pygtk] Portable PyGTK
Vláďa
vladovi at atlas.cz
Tue Nov 23 23:06:47 WST 2010
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 listpygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ:http://faq.pygtk.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20101123/84e2f602/attachment-0001.html>
More information about the pygtk
mailing list