Package Ganga :: Package Utility :: Module ospath_fix
[hide private]
[frames] | no frames]

Module ospath_fix

source code

Functions [hide private]
 
realpath(filename)
Return the canonical path of the specified filename, eliminating any symbolic links encountered in the path.
source code
 
_resolve_link(path)
Internal helper function.
source code
Variables [hide private]
  __package__ = 'Ganga.Utility'
Function Details [hide private]

_resolve_link(path)

source code 

Internal helper function. Takes a path and follows symlinks until we either arrive at something that isn't a symlink, or encounter a path we've seen before (meaning that there's a loop).