about 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.")
'>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24