Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to set environment variables through settings.json #104

Open
GoogleCodeExporter opened this issue May 17, 2015 · 7 comments
Open

Comments

@GoogleCodeExporter
Copy link

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

@GoogleCodeExporter
Copy link
Author

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

@GoogleCodeExporter
Copy link
Author

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

@GoogleCodeExporter
Copy link
Author

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

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 9 Aug 2014 at 6:21

  • Added labels: NextRelease

@GoogleCodeExporter
Copy link
Author

[deleted comment]

1 similar comment
@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 21 Oct 2014 at 10:39

  • Added labels: Restrict-AddIssueComment-Commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant