General utilities and common global variables.

class Progs.common.utils

Namespace for basic utilities.

static get_home_dir()

Get home directory for the user.

static get_setting(setting, default=None, critical=True, msg=None)

Get a setting from self.Settings. NOTE: probably should get moved to common module...

static is_excluded(exclude_rule, check_range)

Check if the given range is within the exclude rule.

  • exclude_rule (tuple) – (depth, startpos, endpos)
  • check_range (tuple) – (startpos, endpos)

  • 1 if range is completely in the exclude range
  • 2 if range is partially in the exclude range
  • 0 if range is not at all in the exclude range