def dotted_from_fs_path(fs_path, sys_path):
 if os.path.basename(fs_path).startswith('__init__.'):
  fs_path = os.path.dirname(fs_path)
 path = ''
 for s in sys_path:
  if (fs_path.startswith(s) and (len(path) < len(s))):
   path = s
 module_path = fs_path[len(path):].lstrip(os.path.sep).lstrip('/')
 return _path_re.sub('', module_path).replace(os.path.sep, '.').replace('/', '.')

def dotted_from_fs_path ( fs_path , sys_path ) : if os . path . basename ( fs_path ) . startswith ( '__init__.' ) : fs_path = os . path . dirname ( fs_path ) path = '' for s in sys_path : if ( fs_path . startswith ( s ) and ( len ( path ) < len ( s ) ) ) : path = s module_path = fs_path [ len ( path ) : ] . lstrip ( os . path . sep ) . lstrip ( '/' ) return _path_re . sub ( '' , module_path ) . replace ( os . path . sep , '.' ) . replace ( '/' , '.' )
changes /usr/lib/python3 .