<s> import sys <EOL> _orig_sys_path = None <EOL> def update_module_path ( ) : <EOL> import os <EOL> global _orig_sys_path <EOL> _orig_sys_path = sys . path [ : ] <EOL> for path in __path__ : <EOL> if path in sys . path : <EOL> sys . path . remove ( path ) <EOL> path = os . path . abspath ( path ) <EOL> if path in sys . path : <EOL> sys . path . remove ( path ) <EOL> sys . path . insert ( <NUM_LIT:0> , path ) <EOL> def restore_module_path ( ) : <EOL> global _orig_sys_path <EOL> sys . path = _orig_sys_path <EOL> _orig_sys_path = None </s>
