Use an utils module
This commit is contained in:
@@ -14,6 +14,8 @@ from action import TypeAction
|
||||
from args import get_string_arg
|
||||
from args import arg_number
|
||||
|
||||
from utils import get_pits_path
|
||||
|
||||
class Project:
|
||||
def __init__(self, status = None):
|
||||
self.name = None
|
||||
@@ -112,8 +114,8 @@ def edit_project(project, project_id, conn):
|
||||
|
||||
if not update_args:
|
||||
print("nothing to update")
|
||||
print("Tips: if you want to set an active project, just do '{} project <project_id>'"
|
||||
.format(os.path.basename(sys.argv[0])))
|
||||
print("Tips: if you want to active a project, just do '{} project <project_id>'"
|
||||
.format(get_pits_path()))
|
||||
sys.exit(1)
|
||||
|
||||
logging.debug('Project update args: {}'.format(update_args))
|
||||
|
||||
Reference in New Issue
Block a user