phpdesktop
phpdesktop copied to clipboard
Option to set environment variables through settings.json
It works on my machine because I have python installed. One of users reported a
problem that it's not working on his computer, see:
https://groups.google.com/d/msg/phpdesktop/8vgK2pmmszs/YSRHj5Hzl6oJ
Original issue reported on code.google.com by [email protected] on 28 Apr 2014 at 1:12
A solution may be to be able to set environment variables through the
settings.json file. Setting PYTHONHOME / PYTHONPATH may be required for the
python to work.
Original comment by [email protected] on 28 Apr 2014 at 1:17
- Changed title: Python Desktop doesn't work out of the box - allow setting env variables through settings.json
Setting PYTHONPATH / PYTHONHOME is currently possible using the
--cgi-environment command line parameter, see the CGIEnvironmentFromArgs wiki
page.
Original comment by [email protected] on 11 May 2014 at 2:18
Another temporary solution is to use a batch file, phpdesktop.bat:
set PYTHONHOME=%~dp0python
set PYTHONPATH=%~dp0python\Lib
set PATH=%PYTHONHOME%;%PATH%
start "My Title" "%~dp0python-desktop-chrome.exe"
Original comment by [email protected] on 11 May 2014 at 2:52