summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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.")