making botan-start runnable alone

This commit is contained in:
2016-05-28 01:39:59 +08:00
parent 41f1ab4c90
commit 16377e0a95
4 changed files with 16 additions and 11 deletions

View File

@@ -2,8 +2,9 @@
import os
from tempfile import NamedTemporaryFile
from botanjs.config import Config as config
COMPILER = "/opt/utils/closure.jar"
COMPILER = config[ "BotanJS" ][ "ClosureCompiler" ]
if not os.path.isfile( COMPILER ):
raise Exception( "Compiler not found" )

View File

@@ -1,8 +1,9 @@
#!/usr/bin/env python3
import os
from botanjs.config import Config as config
COMPILER = "/opt/utils/yuicompressor.jar"
COMPILER = config[ "BotanJS" ][ "YuiCompressor" ]
if not os.path.isfile( COMPILER ):
raise Exception( "Compiler not found" )