1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-20 21:08:06 +01:00

Fix setup.py bug where - was getting turned into _ in paths.

This commit is contained in:
Dan O'Reilly
2009-03-04 18:32:15 -05:00
parent 6dd0642079
commit 34fbabf8a7

View File

@@ -253,7 +253,7 @@ class configure(Command):
cur_arg = argument[0][:-1] cur_arg = argument[0][:-1]
cur_arg_value = getattr(self, cur_arg) cur_arg_value = getattr(self, cur_arg)
print "%s is %s" % (cur_arg, cur_arg_value) print "%s is %s" % (cur_arg, cur_arg_value)
values.append((cur_arg, cur_arg_value.replace('-', '_'))) values.append((cur_arg, getattr(self, cur_arg.replace('-','_'))))
else: else:
cur_arg = argument[0] cur_arg = argument[0]
cur_arg_value = getattr(self, cur_arg.replace('-', '_')) cur_arg_value = getattr(self, cur_arg.replace('-', '_'))