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
0dd1a4f5
Commit
0dd1a4f5
authored
Jun 25, 2020
by
Давид Добряков
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix deps, remove pbd
parent
c9e971c3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
7 deletions
+12
-7
.gitignore
.gitignore
+3
-0
generators.py
dev/generators.py
+1
-1
parser.py
dev/parser.py
+0
-2
redirector.py
dev/redirector.py
+8
-4
No files found.
.gitignore
0 → 100644
View file @
0dd1a4f5
*~
*.swp
dev/generators.py
View file @
0dd1a4f5
from
dev
import
const
import
const
class
Generator
:
def
__init__
(
self
):
...
...
dev/parser.py
View file @
0dd1a4f5
...
...
@@ -38,8 +38,6 @@ class MapLineParser:
return_code
=
1
options
=
[
option
[
1
:
-
1
]
for
option
in
line
[
2
:]]
print
(
line
[
0
])
import
pdb
pdb
.
set_trace
()
if
line
[
0
]
.
startswith
(
"~"
):
line
[
0
]
=
"~"
+
prefix
+
line
[
0
][
1
:]
...
...
dev/redirector.py
View file @
0dd1a4f5
...
...
@@ -4,10 +4,10 @@ import pyinotify
import
asyncore
import
argparse
as
ap
from
dev
import
generators
from
dev
import
logger
from
dev
import
parser
from
dev
import
const
import
generators
import
logger
import
parser
import
const
redirector_watch
=
None
...
...
@@ -122,3 +122,7 @@ def watch(args=None):
redirector_watch
=
RedirectorWatch
()
redirector_watch
.
watch
(
args
.
filename
[
0
])
if
__name__
==
"__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