Permalink
Browse files

use 'lib' dir as library's dir

  • Loading branch information...
1 parent 4931332 commit f6d70e1efe01f7449160f0054bd0ca4e6b1bad9e @jugyo committed Aug 5, 2010
Showing with 9 additions and 4 deletions.
  1. +3 −0 app.py
  2. +6 −4 setup.sh
View
3 app.py
@@ -1,3 +1,6 @@
+import sys
+sys.path.append('lib')
+
from flask import Flask
# if necessary
View
@@ -1,15 +1,17 @@
#!/bin/sh
-lib='flask jinja2 werkzeug'
+mkdir lib
-for i in $lib
+libs='flask jinja2 werkzeug'
+
+for i in $libs
do
rm -rf $i
done
easy_install -U Flask
-for i in $lib
+for i in $libs
do
d=`easy_install -m $i | grep Using | awk '{print $2}'`/$i
- cp -rf $d .
+ cp -rf $d lib
done

0 comments on commit f6d70e1

Please sign in to comment.