<s> from __future__ import unicode_literals <EOL> from __future__ import absolute_import <EOL> import os <EOL> import subprocess <EOL> if '<STR_LIT>' not in os . environ : <EOL> os . environ [ '<STR_LIT>' ] = os . path . join ( <EOL> os . getcwd ( ) , '<STR_LIT>' <EOL> ) <EOL> from puppetboard . app import app <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> if os . environ . get ( '<STR_LIT>' ) is None : <EOL> try : <EOL> subprocess . Popen ( [ <EOL> app . config [ '<STR_LIT>' ] , '<STR_LIT>' , '<STR_LIT:-c>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ] ) <EOL> except OSError : <EOL> app . logger . error ( <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> ) <EOL> app . debug = True <EOL> app . run ( app . config [ '<STR_LIT>' ] , app . config [ '<STR_LIT>' ] ) </s>
