<s> import os <EOL> import sys <EOL> LIBDIR = '<STR_LIT>' <EOL> PROGRAM_PATH = '<STR_LIT>' <EOL> os . chdir ( os . path . dirname ( __file__ ) ) <EOL> try : <EOL> dir = os . path . dirname ( os . path . abspath ( __file__ ) ) <EOL> if os . path . exists ( os . path . join ( dir , '<STR_LIT:..>' , '<STR_LIT>' , '<STR_LIT>' ) ) or os . path . exists ( os . path . join ( dir , '<STR_LIT:..>' , '<STR_LIT>' ) ) : <EOL> root = os . path . split ( dir ) [ <NUM_LIT:0> ] <EOL> else : <EOL> root = os . path . join ( LIBDIR , '<STR_LIT>' , '<STR_LIT>' ) <EOL> sys . path . insert ( <NUM_LIT:0> , root ) <EOL> import warnings <EOL> warnings . filterwarnings ( '<STR_LIT:ignore>' , category = UserWarning ) <EOL> from flumotion . common import boot <EOL> boot . boot ( PROGRAM_PATH , gtk = True , gst = True , installReactor = True ) <EOL> except KeyboardInterrupt : <EOL> print '<STR_LIT>' </s>
