Package elisa :: Package core :: Package utils :: Package mswin32 :: Module tools :: Class ShortcutResolver

Class ShortcutResolver

source code


Helper class that resolves windows shortcuts.

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
unicode

@raise pywintypes.com_error: if the given filename is not a shortcut

resolve(self, shortcut)
Resolve a windows shortcut.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

resolve(self, shortcut)

source code 

Resolve a windows shortcut. Do not raise an error if the target of the shortcut does not exist.

Parameters:
  • shortcut (str) - the full filename of the shortcut (including its .lnk extension)
Returns: unicode

@raise pywintypes.com_error: if the given filename is not a shortcut

the full path to the shortcut's target