Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
aee9d6b7
Commit
aee9d6b7
authored
Dec 03, 2000
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow recursive searh entries by ending the pathname in ":*".
parent
cb9b1ebe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
Mac/Lib/mkcwproject/cwxmlgen.py
Mac/Lib/mkcwproject/cwxmlgen.py
+8
-1
Mac/Lib/mkcwproject/template/template-searchdirs.xml
Mac/Lib/mkcwproject/template/template-searchdirs.xml
+1
-1
No files found.
Mac/Lib/mkcwproject/cwxmlgen.py
View file @
aee9d6b7
...
...
@@ -47,11 +47,16 @@ class ProjectBuilder:
if
not
type
(
keyvalues
)
in
(
type
(()),
type
([])):
raise
Error
,
"List or tuple expected for %s"
%
key
for
curkeyvalue
in
keyvalues
:
self
.
dict
[
key
]
=
curkeyvalue
if
os
.
path
.
isabs
(
curkeyvalue
):
self
.
dict
[
'pathtype'
]
=
'Absolute'
else
:
self
.
dict
[
'pathtype'
]
=
'Project'
if
curkeyvalue
[
-
2
:]
==
':*'
:
curkeyvalue
=
curkeyvalue
[:
-
2
]
self
.
dict
[
'recursive'
]
=
'true'
else
:
self
.
dict
[
'recursive'
]
=
'false'
self
.
dict
[
key
]
=
curkeyvalue
curkeyvalueresult
=
self
.
_generate_one_value
(
datasource
,
dataname
)
result
=
result
+
curkeyvalueresult
finally
:
...
...
@@ -59,6 +64,8 @@ class ProjectBuilder:
self
.
dict
[
key
]
=
keyvalues
self
.
dict
[
'pathtype'
]
=
None
del
self
.
dict
[
'pathtype'
]
self
.
dict
[
'recursive'
]
=
None
del
self
.
dict
[
'recursive'
]
else
:
# Not a multi-element rule. Simply generate
result
=
self
.
_generate_one_value
(
datasource
,
dataname
)
...
...
Mac/Lib/mkcwproject/template/template-searchdirs.xml
View file @
aee9d6b7
...
...
@@ -4,6 +4,6 @@
<SETTING><NAME>
PathFormat
</NAME><VALUE>
MacOS
</VALUE></SETTING>
<SETTING><NAME>
PathRoot
</NAME><VALUE>
%(pathtype)s
</VALUE></SETTING>
</SETTING>
<SETTING><NAME>
Recursive
</NAME><VALUE>
false
</VALUE></SETTING>
<SETTING><NAME>
Recursive
</NAME><VALUE>
%(recursive)s
</VALUE></SETTING>
<SETTING><NAME>
HostFlags
</NAME><VALUE>
All
</VALUE></SETTING>
</SETTING>
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