Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-pipeline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-pipeline
Commits
c847fb1f
Commit
c847fb1f
authored
May 25, 2013
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #222 from tepez/master
normalize paths in match_location
parents
7ba49d23
5e646e78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
pipeline/storage.py
+6
-2
No files found.
pipeline/storage.py
View file @
c847fb1f
...
@@ -103,9 +103,13 @@ class BaseFinderStorage(PipelineStorage):
...
@@ -103,9 +103,13 @@ class BaseFinderStorage(PipelineStorage):
if
prefix
:
if
prefix
:
prefix
=
"
%
s
%
s"
%
(
prefix
,
os
.
sep
)
prefix
=
"
%
s
%
s"
%
(
prefix
,
os
.
sep
)
name
=
name
[
len
(
prefix
):]
name
=
name
[
len
(
prefix
):]
if
path
==
name
:
norm_path
=
os
.
path
.
normpath
(
path
)
norm_name
=
os
.
path
.
normpath
(
name
)
if
norm_path
==
norm_name
:
return
name
return
name
if
os
.
path
.
splitext
(
path
)[
0
]
==
os
.
path
.
splitext
(
name
)[
0
]:
if
os
.
path
.
splitext
(
norm_path
)[
0
]
==
os
.
path
.
splitext
(
norm_
name
)[
0
]:
return
name
return
name
return
None
return
None
...
...
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