Just put the error log in the current working directory.

This commit is contained in:
Andrew Hamilton 2015-12-15 00:19:43 +00:00
parent ec2383a529
commit 22611b6444

5
vigil
View file

@ -63,9 +63,12 @@ import termstr
import tools
_CWD = os.getcwd()
def _log_error(message=None):
message = traceback.format_exc() if message is None else message + "\n"
with open("/home/ahamilton/vigil.log", "a") as log_file:
with open(os.path.join(_CWD, "vigil.log"), "a") as log_file:
log_file.write(message)