mcsas.utils.lastpath module

General utilities without GUI dependencies.

class LastPath[source]

Bases: object

Stores a file system path for use in file open dialogs.

How to test this platform independent? >>> from utils import LastPath, getHomeDir >>> LastPath.path == getHomeDir() True >>> LastPath.path = ‘.’ >>> LastPath.path == ‘.’ True

classmethod get()[source]

Warning

method ‘utils.lastpath.LastPath.get’ undocumented

classmethod set(lastpath)[source]

Accepts a directory path or a file path. Determines the directory itself in the latter case.

getHomeDir()[source]

Warning

function ‘utils.lastpath.getHomeDir’ undocumented