summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-02-14 12:29:31 +0100
committerhut <hut@lavabit.com>2010-02-14 22:17:00 +0100
commitc44b726eb81795a0310ad1a0a3e54fdc8304fc1c (patch)
treea77b8f8aad04ffbd47b3cdae89f9c68dcb82d8e6
parent87db0130f83b071845258a073c62460ccdf6efe5 (diff)
downloadranger-c44b726eb81795a0310ad1a0a3e54fdc8304fc1c.tar.gz
ranger.py: more simple '--debug' flag check
-rwxr-xr-xranger.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger.py b/ranger.py
index 6d07f608..b38876ee 100755
--- a/ranger.py
+++ b/ranger.py
@@ -56,7 +56,7 @@ try:
 
 except ImportError as errormessage:
 	import sys
-	if not set(sys.argv) & set(('--debug', '-d')):
+	if '-d' not in sys.argv and '--debug' not in sys.argv:
 		print("Can't import the main module.")
 		print("To run an uninstalled copy of ranger,")
 		print("launch ranger.py in the top directory.")