about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-10-09 23:01:25 +0200
committerhut <hut@lavabit.com>2010-10-09 23:01:25 +0200
commit5dd47a49105067127b0cc8bb99431af7028f5ade (patch)
treec0de2346f181a6bd447dd3dc3e6e32930516f602
parent3668fb2c70524a4f3e988cc4760e319500f9a4fb (diff)
downloadranger-5dd47a49105067127b0cc8bb99431af7028f5ade.tar.gz
core.helper: fixed debug functions
-rw-r--r--ranger/core/helper.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/core/helper.py b/ranger/core/helper.py
index 0ef0fc27..38460bb6 100644
--- a/ranger/core/helper.py
+++ b/ranger/core/helper.py
@@ -161,6 +161,7 @@ def log(*objects, **keywords):
 	Writes objects to a logfile (for the purpose of debugging only.)
 	Has the same arguments as print() in python3.
 	"""
+	from ranger import arg
 	if LOGFILE is None or not arg.debug or arg.clean: return
 	start = 'start' in keywords and keywords['start'] or 'ranger:'
 	sep   =   'sep' in keywords and keywords['sep']   or ' '
@@ -170,6 +171,7 @@ def log(*objects, **keywords):
 
 
 def log_traceback():
+	from ranger import arg
 	if LOGFILE is None or not arg.debug or arg.clean: return
 	import traceback
 	traceback.print_stack(file=open(LOGFILE, 'a'))