Skip to content

Commit 5033aba

Browse files
committed
Cleaned upthe manage.py command changes a little bit.
- Legacy-Id: 6156
1 parent 4538ef7 commit 5033aba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ietf/manage.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010

1111
import os
1212
import sys
13-
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)) )
13+
14+
path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
15+
if not path in sys.path:
16+
sys.path.insert(0, path)
1417

1518
from django.core.management import execute_manager
1619
try:

0 commit comments

Comments
 (0)