Magellan Linux

Annotation of /smage/trunk/include/python.sminc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1661 - (hide annotations) (download)
Sat Jan 22 23:14:38 2011 UTC (13 years, 4 months ago) by niro
Original Path: smage/branches/alx-0_6_0/include/python.sminc
File size: 294 byte(s)
added includes
1 niro 1661 # $Header: /alx-cvs/smage/include/python.sminc,v 1.1 2005/08/27 14:29:31 niro Exp $
2    
3     # get the major.minor current installed python version
4     # -> ex 2.4
5     get_python_version()
6     {
7     PYVER="$(python -V 2>&1 | cut -d' ' -f2 | cut -d. -f1-2)"
8     [[ -z ${PYVER} ]] && return 1
9     echo "${PYVER}"
10     return 0
11     }