Use an utils module

This commit is contained in:
2018-07-21 15:37:38 +02:00
parent 438eb2c677
commit 5f9ea6f0b7
5 changed files with 81 additions and 93 deletions

View File

@@ -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))