summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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'))
a> 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120