Permalink
Browse files

Google App Engine sample: Complete Readme.

And make the build command work from every directory by setting an absolute base path.
  • Loading branch information...
1 parent f7303bb commit d7b182772daeaa67e261dd29c94516dac04fc535 @miracle2k committed Nov 29, 2011
Showing with 5 additions and 2 deletions.
  1. +3 −1 examples/appengine/README
  2. +2 −1 examples/appengine/assets.py
View
4 examples/appengine/README
@@ -5,6 +5,8 @@ but just shows the bare minimum approach.
To run the sample, use:
- $./appengine-sdk/dev_appserver.py examples/appengine
+ $ ./appengine-sdk/dev_appserver.py examples/appengine
Remember, you need to build your assets manually:
+
+ $ examples/appengine/assets.py
View
3 examples/appengine/assets.py
@@ -1,7 +1,8 @@
#!/usr/bin/env python
+from os import path
from webassets import Bundle, Environment
-env = Environment('static', '/stylesheets')
+env = Environment(path.join(path.dirname(__file__), 'static'), '/stylesheets')
# App Engine doesn't support automatic rebuilding.
env.updater = False
# URL expiry not currently supported on App Engine

0 comments on commit d7b1827

Please sign in to comment.