Skip to content

Commit

Permalink
Detect OS name on Raspberry Pi
Browse files Browse the repository at this point in the history
  • Loading branch information
dsavenko committed Dec 20, 2016
1 parent fd9e425 commit 891962d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.pyc
sftp-config.json
2 changes: 1 addition & 1 deletion module/platform.os/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ def detect(i):
'delete_after_read':'yes'})
if r['return']==0:
ver=r['dict']
prop_os_name=ver.get('DISTRIB_DESCRIPTION','')
prop_os_name=ver.get('DISTRIB_DESCRIPTION', ver.get('PRETTY_NAME',''))

if prop_os_name=='' and prop_os_name_short!='':
prop_os_name=prop_os_name_short
Expand Down

0 comments on commit 891962d

Please sign in to comment.