mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-14 00:21:08 +00:00
Support --noconf
This commit is contained in:
parent
ae8648282c
commit
baae70c001
@ -31,6 +31,8 @@ def get_devscripts_config():
|
||||
dictionary
|
||||
"""
|
||||
config = {}
|
||||
if len(sys.argv) > 1 and sys.argv[1] in ('--no-conf', '--noconf'):
|
||||
return config
|
||||
var_re = re.compile(r'^\s*([A-Z_]+?)=(.+)$')
|
||||
for fn in ('/etc/devscripts.conf', '~/.devscripts'):
|
||||
f = open(os.path.expanduser(fn), 'r')
|
||||
|
Loading…
x
Reference in New Issue
Block a user