Uses colorama instead of clint

This commit is contained in:
Manuel Ebert 2013-04-17 10:19:02 +02:00
parent f79f7cf849
commit e0f7d235b1
5 changed files with 19 additions and 13 deletions

View file

@ -77,8 +77,8 @@ def install_jrnl(config_path='~/.jrnl_config'):
print("PyCrypto not found. To encrypt your journal, install the PyCrypto package from http://www.pycrypto.org and run 'jrnl --encrypt'. For now, your journal will be stored in plain text.")
# Use highlighting:
if module_exists("clint"):
print("clint not found. To turn on highlighting, install clint and set highlight to true in your .jrnl_conf.")
if module_exists("colorama"):
print("colorama not found. To turn on highlighting, install colorama and set highlight to true in your .jrnl_conf.")
default_config['highlight'] = False
open(default_config['journals']['default'], 'a').close() # Touch to make sure it's there
@ -91,4 +91,4 @@ def install_jrnl(config_path='~/.jrnl_config'):
config['password'] = password
return config