Fix distribution detection - return string instead of functions
This commit is contained in:
parent
9649e4bf15
commit
e41f89d507
1 changed files with 2 additions and 2 deletions
|
@ -96,10 +96,10 @@ def get_distribution():
|
|||
''' return the distribution name '''
|
||||
if platform.system() == 'Linux':
|
||||
try:
|
||||
distribution = platform.linux_distribution()[0].capitalize
|
||||
distribution = platform.linux_distribution()[0].capitalize()
|
||||
except:
|
||||
# FIXME: MethodMissing, I assume?
|
||||
distribution = platform.dist()[0].capitalize
|
||||
distribution = platform.dist()[0].capitalize()
|
||||
else:
|
||||
distribution = None
|
||||
return distribution
|
||||
|
|
Loading…
Reference in a new issue