This module provides miscellaneous utility functions.
Iterate over each item in the set and add its parent directories.
An os.path.basename() implementation that always uses ‘/’
Avoid os.path.basename because git’s output always uses ‘/’ regardless of platform.
Return a cheap md5 hexdigest for a path.
An os.path.dirname() implementation that always uses ‘/’
Avoid os.path.dirname because git’s output always uses ‘/’ regardless of platform.
Returns the full path to an icon file corresponding to filename”s contents.
Launch a command in the background.
Greps a list for items that match a pattern and return a list of matching items. If only one item matches, return just that item.
Returns an icon based on the contents of filename.
Is it windows or mac? (e.g. is running git-mergetool non-trivial?)
Return True on OSX.
Is it debian?
Is this a linux machine?
Returns the .qm file for a particular $LANG values.
Quote a path for nt/dos only.
Run arguments as a command and return output.
>>> run_cmd(["echo", "hello", "world"])
'hello world'
Removes shell metacharacters from a string.
Slurps a filepath into a string.
Return string, without the prefix. Blow up if string doesn’t start with prefix.
Subtracts list b from list a and returns the resulting list.
Return the absolute path to an .exe if it exists
Expand filenames after the double-dash
Writes a string to a file.