Commit f9dddeb1 authored by Rafael Monnerat's avatar Rafael Monnerat

Get python from sys.executable

parent c1918189
......@@ -28,6 +28,7 @@
##############################################################################
import os
import sys
import tempfile
from AccessControl import ClassSecurityInfo
from Products.ERP5Type.Globals import InitializeClass, DTMLFile
......@@ -307,15 +308,7 @@ class IntrospectionTool(LogMixin, BaseTool):
Get the value of PYTHON for zopectl startup script
or from zope.conf (whichever is most relevant)
"""
config_file = self._getZopeConfigurationFile("bin/zopectl")
new_file_list = []
for line in config_file:
if line.startswith("PYTHON="):
return line.replace("PYTHON=","")
# Not possible get configuration from the zopecl
return None
return sys.executable
security.declareProtected(Permissions.ManagePortal, '_getProductPathList')
def _getProductPathList(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment