Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nginx-redirector
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eterfund
nginx-redirector
Commits
34fc92e2
Commit
34fc92e2
authored
Apr 27, 2022
by
Soldatoff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the service redirector-whatch
parent
2c60ba57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
watcher.py
redirector/watcher.py
+2
-2
No files found.
redirector/watcher.py
View file @
34fc92e2
...
...
@@ -28,7 +28,7 @@ class RedirectorWatch:
yaml_dir
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
yaml_file
))
for
map_path
,
_
in
self
.
parser
.
parse_yaml
(
yaml_file
):
for
map_path
,
_
,
_
in
self
.
parser
.
parse_yaml
(
yaml_file
):
rel_map_path
=
os
.
path
.
relpath
(
map_path
,
start
=
yaml_dir
)
abs_map_path
=
os
.
path
.
join
(
rel_map_path
,
yaml_dir
,
os
.
path
.
basename
(
map_path
))
abs_map_path
=
os
.
path
.
normpath
(
abs_map_path
)
...
...
@@ -93,7 +93,7 @@ class RedirectorWatch:
def
add_files
(
self
,
file_
,
wm
):
file_list
=
self
.
parser
.
parse_yaml
(
file_
)
for
map_path
,
_
in
file_list
:
for
map_path
,
_
,
_
in
file_list
:
abs_map_path
=
os
.
path
.
abspath
(
map_path
)
wdd
=
wm
.
add_watch
(
abs_map_path
,
self
.
mask
,
rec
=
True
,
auto_add
=
True
)
...
...
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