Skip to content

Commit

Permalink
Update watch.py
Browse files Browse the repository at this point in the history
  • Loading branch information
iceraj committed Aug 7, 2013
1 parent b740a83 commit 8bada7a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions html_app/watch.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from threading import Timer
from subprocess import call

root = os.environ['HOME']+'/.virtualenvs/StarCellBio/StarCellBio/html_app/';
root = os.environ['VIRTUAL_ENV']+'/starcellbio_html/html_app/'

global_update_index = True
js = dict();
Expand Down Expand Up @@ -58,12 +58,12 @@ def processor( path ):
if( path.endswith(".soy") ):
infile = path
outfile = os.path.dirname(infile) + "/gen/" + os.path.basename(infile) + ".js"
call(["java", "-jar" , "../../SoyToJsSrcCompiler.jar" , "--outputPathFormat" , outfile , infile ])
call(["java", "-jar" , "../tools/SoyToJsSrcCompiler.jar" , "--outputPathFormat" , outfile , infile ])
print "compile soy %s " % (path)
if( path.endswith(".gss") ):
infile = path
outfile = os.path.dirname(infile) + "/gen/" + os.path.basename(infile) + ".css"
call(["java", "-jar" , "../../closure-stylesheets-20111230.jar" , "--pretty-print" , infile , "-o" , outfile])
call(["java", "-jar" , "../tools/closure-stylesheets-20111230.jar" , "--pretty-print" , infile , "-o" , outfile])
print "compile gss %s to %s " % (infile,outfile)
if( path.endswith(".touch_index" ) ):
update_index_html()
Expand Down
Binary file added tools/SoyToJsSrcCompiler.jar
Binary file not shown.
Binary file added tools/closure-stylesheets-20111230.jar
Binary file not shown.

0 comments on commit 8bada7a

Please sign in to comment.