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