def update_python_path(paths):
 old_sys_path_items = list(sys.path)
 for path in paths:
  if (path.find('site-packages') != (-1)):
   site.addsitedir(path)
  else:
   sys.path.insert(0, path)
 new_sys_path_items = (set(sys.path) - set(old_sys_path_items))
 sys.path = (list(new_sys_path_items) + old_sys_path_items)

def update_python_path ( paths ) : old_sys_path_items = list ( sys . path ) for path in paths : if ( path . find ( 'site-packages' ) != ( - 1 ) ) : site . addsitedir ( path ) else : sys . path . insert ( 0 , path ) new_sys_path_items = ( set ( sys . path ) - set ( old_sys_path_items ) ) sys . path = ( list ( new_sys_path_items ) + old_sys_path_items )
update sys .