Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
erp5
Commits
f9dddeb1
Commit
f9dddeb1
authored
Jun 21, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get python from sys.executable
parent
c1918189
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
product/ERP5/Tool/IntrospectionTool.py
product/ERP5/Tool/IntrospectionTool.py
+2
-9
No files found.
product/ERP5/Tool/IntrospectionTool.py
View file @
f9dddeb1
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment