From 6eae426a7ee632a40f916286b0fa88db916c8bbc Mon Sep 17 00:00:00 2001 From: ache Date: Tue, 24 Nov 2020 08:27:44 +0100 Subject: New instructions --- dicofr.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dicofr.py') diff --git a/dicofr.py b/dicofr.py index 7e6888d..68bec87 100755 --- a/dicofr.py +++ b/dicofr.py @@ -17,9 +17,9 @@ from os.path import exists import ui -debug = False +DEBUG = False -if debug: +if DEBUG: DIR_PATH = 'assets/' else: DIR_PATH = '/usr/share/dicofr/assets/' @@ -109,6 +109,7 @@ if __name__ == '__main__': if not exists(dico): if not exists(f'{DIR_PATH}/{dico}'): print('Error: No sqlite dictionnary', file=sys.stderr) + print(f'Default directory is set to "{DIR_PATH}"', file=sys.stderr) exit(1) else: dico = f'{DIR_PATH}/{dico}' -- cgit v1.2.3-54-g00ecf