making botan-start runnable alone
This commit is contained in:
@@ -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" )
|
||||
|
@@ -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" )
|
||||
|
Reference in New Issue
Block a user