fix manage.py importing from the wrong path
This commit is contained in:
parent
39ce6a4ee9
commit
f81dd4b7a2
3 changed files with 8 additions and 12 deletions
|
@ -13,5 +13,5 @@ def run_command(argv):
|
|||
|
||||
sys.exit(result.returncode)
|
||||
|
||||
if __name__=='__main__':
|
||||
if __name__ == '__main__':
|
||||
run_command(sys.argv)
|
||||
|
|
|
@ -1,13 +1,10 @@
|
|||
|
||||
import functools
|
||||
import pprint
|
||||
# import pprint
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
|
||||
def _execute(command,**kwargs):
|
||||
#print("Running:")
|
||||
#pprint.pprint(command)
|
||||
# print("Running:")
|
||||
# pprint.pprint(command)
|
||||
|
||||
check = kwargs.get('check', True)
|
||||
on_stdout_line = kwargs.get('on_stdout_line', None)
|
||||
|
|
|
@ -3,11 +3,10 @@
|
|||
import sys
|
||||
from common import error, run_help
|
||||
|
||||
from command import run_command
|
||||
from test import run_test
|
||||
|
||||
if __name__=='__main__':
|
||||
from .command import run_command
|
||||
from .test import run_test
|
||||
|
||||
if __name__ == '__main__':
|
||||
if len(sys.argv) < 2:
|
||||
error("Usage: './manage.py <command> [options]'")
|
||||
|
||||
|
@ -21,4 +20,4 @@ if __name__=='__main__':
|
|||
elif name == "help":
|
||||
run_help()
|
||||
else:
|
||||
error("Not a command")
|
||||
error("Not a command")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue