fix manage.py importing from the wrong path

This commit is contained in:
justcool393 2023-04-02 00:58:53 -05:00 committed by Ben Rog-Wilhelm
parent 39ce6a4ee9
commit f81dd4b7a2
3 changed files with 8 additions and 12 deletions

View file

@ -13,5 +13,5 @@ def run_command(argv):
sys.exit(result.returncode) sys.exit(result.returncode)
if __name__=='__main__': if __name__ == '__main__':
run_command(sys.argv) run_command(sys.argv)

View file

@ -1,13 +1,10 @@
# import pprint
import functools
import pprint
import subprocess import subprocess
import sys import sys
import time
def _execute(command,**kwargs): def _execute(command,**kwargs):
#print("Running:") # print("Running:")
#pprint.pprint(command) # pprint.pprint(command)
check = kwargs.get('check', True) check = kwargs.get('check', True)
on_stdout_line = kwargs.get('on_stdout_line', None) on_stdout_line = kwargs.get('on_stdout_line', None)

View file

@ -3,11 +3,10 @@
import sys import sys
from common import error, run_help from common import error, run_help
from command import run_command from .command import run_command
from test import run_test from .test import run_test
if __name__=='__main__':
if __name__ == '__main__':
if len(sys.argv) < 2: if len(sys.argv) < 2:
error("Usage: './manage.py <command> [options]'") error("Usage: './manage.py <command> [options]'")