This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

new script to identify distro details

  • Loading branch information...
apeabody committed Jun 19, 2016
1 parent 34e2035 commit 49f26a38847c2e2eb20fc57d1f1da5725a2ec898
Showing with 23 additions and 0 deletions.
  1. +23 −0 utils/dist.py
View
@@ -0,0 +1,23 @@
#!/usr/bin/env python
# dist.py - Identify Linux Distro
#
# Copyright 2016 Andrew Peabody. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import platform
print("Distro: " + platform.linux_distribution()[0]);
print("Version: " + platform.linux_distribution()[1]);

0 comments on commit 49f26a3

Please sign in to comment.