<s> import os , sys <EOL> class _Path ( object ) : <EOL> '''<STR_LIT>''' <EOL> _path = '<STR_LIT>' <EOL> @ staticmethod <EOL> def _insert_libs_path ( path , idx = <NUM_LIT:0> ) : <EOL> '''<STR_LIT>''' <EOL> _Path . _path = path <EOL> sys . path . insert ( idx , _Path . _path ) <EOL> @ staticmethod <EOL> def _get_path ( path = None ) : <EOL> '''<STR_LIT>''' <EOL> if not path : <EOL> path = os . path . dirname ( os . path . abspath ( __file__ ) ) <EOL> _Path . _path = path <EOL> return _Path . _path <EOL> def get_libs_path ( libs_path = '<STR_LIT:.>' , path = None , idx = <NUM_LIT:0> ) : <EOL> '''<STR_LIT>''' <EOL> _Path . _insert_libs_path ( '<STR_LIT>' % ( _Path . _get_path ( path ) , libs_path ) , idx ) </s>
