Skip to content

Commit

Permalink
🔧fix user_add path load faild
Browse files Browse the repository at this point in the history
  • Loading branch information
boy-hack committed Apr 21, 2019
1 parent 4713f29 commit 0d0415b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pipeline/user_add.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
# @Author : w8ay
# @File : user_add.py
import sys
import os

sys.path.append("../")
try:
from Server import settings
except ImportError:
raise
path = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
sys.path.append(path)
from Server import settings

import os
import django
Expand Down

0 comments on commit 0d0415b

Please sign in to comment.