Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
0cae9cc3
Commit
0cae9cc3
authored
Mar 04, 2009
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make 'mkzopeinstance' work from a SVN checkout.
parent
d1769d15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
src/Zope2/utilities/mkzopeinstance.py
src/Zope2/utilities/mkzopeinstance.py
+12
-0
No files found.
src/Zope2/utilities/mkzopeinstance.py
View file @
0cae9cc3
...
@@ -50,6 +50,9 @@ def main():
...
@@ -50,6 +50,9 @@ def main():
skelsrc
=
None
skelsrc
=
None
python
=
None
python
=
None
if
check_buildout
():
python
=
os
.
path
.
abspath
(
'bin/zopepy'
)
for
opt
,
arg
in
opts
:
for
opt
,
arg
in
opts
:
if
opt
in
(
"-d"
,
"--dir"
):
if
opt
in
(
"-d"
,
"--dir"
):
skeltarget
=
os
.
path
.
abspath
(
os
.
path
.
expanduser
(
arg
))
skeltarget
=
os
.
path
.
abspath
(
os
.
path
.
expanduser
(
arg
))
...
@@ -186,5 +189,14 @@ def write_inituser(fn, user, password):
...
@@ -186,5 +189,14 @@ def write_inituser(fn, user, password):
fp
.
close
()
fp
.
close
()
os
.
chmod
(
fn
,
0644
)
os
.
chmod
(
fn
,
0644
)
def
check_buildout
():
""" Are we running from within a buildout which supplies 'zopepy'?
"""
if
os
.
path
.
exists
(
'buildout.cfg'
):
from
ConfigParser
import
RawConfigParser
parser
=
RawConfigParser
()
parser
.
read
(
'buildout.cfg'
)
return
'zopepy'
in
parser
.
sections
()
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
main
()
main
()
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