...
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
# Standart Python Modules
|
# Standart Python Modules
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
import gettext
|
import gettext
|
||||||
__trans = gettext.translation('pisi', fallback=True)
|
__trans = gettext.translation('pisi', fallback=True)
|
||||||
@@ -43,12 +44,8 @@ def curKERNEL():
|
|||||||
versionString = file("/proc/version").readline()
|
versionString = file("/proc/version").readline()
|
||||||
return versionString.split()[2]
|
return versionString.split()[2]
|
||||||
|
|
||||||
#FIXME: misleading name, what does this mean?
|
|
||||||
#we want the "pythonlibdir"
|
|
||||||
def curPYTHON():
|
def curPYTHON():
|
||||||
''' returns currently used python's version'''
|
''' returns currently used python's version'''
|
||||||
# the method of reading symlink name was totally lame :) -- exa
|
|
||||||
import sys
|
|
||||||
(a, b, c, x, y) = sys.version_info
|
(a, b, c, x, y) = sys.version_info
|
||||||
return 'python%s.%s' % (a, b)
|
return 'python%s.%s' % (a, b)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user