Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use 'lib' dir as library's dir

  • Loading branch information...
commit f6d70e1efe01f7449160f0054bd0ca4e6b1bad9e 1 parent 4931332
jugyo authored
Showing with 9 additions and 4 deletions.
  1. +3 −0  app.py
  2. +6 −4 setup.sh
3  app.py
View
@@ -1,3 +1,6 @@
+import sys
+sys.path.append('lib')
+
from flask import Flask
# if necessary
10 setup.sh
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
Please sign in to comment.
Something went wrong with that request. Please try again.