Giter VIP home page Giter VIP logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
I assume you are manually adding the SDK path to the PATH environment variable?

If you're going to this effort why not add it to PYTHONPATH? Then it will be
automatically imported and no code changes in the helper will be required.

Original comment by [email protected] on 16 Jun 2008 at 10:33

from google-app-engine-django.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024

Original comment by [email protected] on 16 Jun 2008 at 10:33

  • Added labels: Priority-Low, Type-Enhancement
  • Removed labels: Priority-Medium, Type-Defect

from google-app-engine-django.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
Please re-open if you have further information.

Original comment by [email protected] on 24 Jun 2008 at 10:25

  • Changed state: Invalid

from google-app-engine-django.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
The google installer for windows kindly sets the path environment. It is 
available 
in the registry under HKEY_CURRENT_USER.Environment.Path and under the system 
environment settings. You can use _winreg or the simpler method proposed by 
qxodream.
Both are better than guessing.

wpaths = os.environ['PATH'].split(";")
for tmp_path in wpaths:
  if tmp_path.count('google_appengine') > 0:      
     paths.append(tmp_path.rstrip('\\'))

The use of Drive:\\Program Files is useless unless you actually accept the 
installer 
default installation path. Many developers do development on drives other than 
C. 
Other developers refuse to install in Program Files - especially on vista.

Original comment by [email protected] on 6 Jul 2008 at 2:35

from google-app-engine-django.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
This should be resolved in r32 which uses a win32 api function to find the SDK
without needing to assume the drive letter or that Program Files is on the same 
drive
as Windows itself.

Original comment by [email protected] on 6 Jul 2008 at 6:23

from google-app-engine-django.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
The code in r32 asks windows for the the path for program files. I however, 
naively 
instructed the installer to install in E:\Google. It could have been E:\myGoog. 
That 
is a both a perfectly valid choice and quite a normal one on Windows. If you 
run the 
msi installer a second time, it will ask if you would like to repair or delete 
the 
installation - it knows I installed to E:\Google. The code in r32 
unsurprisingly 
then, does not find the appengine.

My point earlier, was that the appengine msi installer does conveniently add 
(or 
modify) it's install path in the windows path environment variable. This then  
presents itself in os.environ['PATH']. I guess whoever coded the installer 
thought 
this was a good decision.


Original comment by [email protected] on 7 Jul 2008 at 11:31

from google-app-engine-django.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
I've committed some code to implement this in r50.

Thanks for the suggestions

Original comment by [email protected] on 6 Aug 2008 at 9:48

  • Changed state: Fixed

from google-app-engine-django.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.