Skip to content

Commit

Permalink
[update] 修改启动方式问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jhao104 committed Dec 17, 2016
1 parent e554a07 commit 28787fb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Api/ProxyApi.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
__author__ = 'JHao'

from flask import Flask, jsonify, request
import sys

sys.path.append('../')

from Manager.ProxyManager import ProxyManager

app = Flask(__name__)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ pip install -r requirements.txt
到Config.ini中配置你的SSDB
项目目录下:
>>>python ProxyRefreshSchedule.py
>>>python -m Schedule.ProxyRefreshSchedule
到Api目录下:
>>>python ProxyApi.py
>>>python -m Api.ProxyApi
```

### 5、使用
Expand Down
3 changes: 3 additions & 0 deletions Schedule/ProxyRefreshSchedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
from multiprocessing import Process
import requests
import time
import sys

sys.path.append('../')

from Manager.ProxyManager import ProxyManager

Expand Down

0 comments on commit 28787fb

Please sign in to comment.