# List of paths to look for configuration files. If a directory is specified,
# it will be (recursively) scanned for .conf files.
-configs = [os.path.join(os.getenv("HOME"), ".bitfields.conf"),
- os.path.join(os.getenv("HOME"), ".bitfields.d")]
+configs = [os.path.join(os.getenv("HOME"), ".bitfield.conf"),
+ os.path.join(os.getenv("HOME"), ".bitfield.d"),
+ "/etc/bitfield.d", "/etc/bitfield", ]
class bitfield:
def __init__(self, bits, name):
"for %d-bit register '%s'") % (value, reg.width, reg.id)
return
- print reg.decode(i, options.has_key('non_zero'))
+ print reg.decode(i, options['non-zero'])
def main():