This module provides miscellaneous utility functions.
Simple progress indicator.
Displayed as a spinning character by default, but can be customized by passing custom messages that overrides the spinning character.
Finalize progress indication with the given message.
Remove the last prefix from the prefix stack.
Append the given prefix onto the prefix stack.
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.
Print a debug message to stderr when DEBUG is enabled.
Print as error message to stderr and exit the program.
An os.path.dirname() implementation that always uses ‘/’
Avoid os.path.dirname because git’s output always uses ‘/’ regardless of platform.
Print an error message to stderr.
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.
Return True on OSX.
Is it debian?
Is this a linux machine?
Print a message to stderr.
Quote a path for nt/dos only.
Run arguments as a command and return output.
>>> run_cmd(["echo", "hello", "world"])
'hello world'
Run the given command to completion, and return its results.
This provides a simpler interface to the subprocess module.
The results are formatted as a 3-tuple: (exit_code, output, errors)
If flag_error is enabled, Error messages will be produced if the subprocess terminated with a non-zero exit code and/or stderr output.
The other arguments are passed on to start_command().
Removes shell metacharacters from a string.
Slurps a filepath into a string.
Start the given command, and return a subprocess object.
This provides a simpler interface to the subprocess module.
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.
Print a warning message to stderr.
Return the absolute path to an .exe if it exists
Expand and quote filenames after the double-dash
Writes a raw string to a file.