We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9b13f9 commit aba3ccfCopy full SHA for aba3ccf
share/plug-ins/explorer.py
@@ -22,15 +22,19 @@ def can_execute(context):
22
23
@interactive(
24
name="Open in system file explorer",
25
- contextual="Open explorer",
+ contextual="Open in system file explorer",
26
filter=can_execute
27
)
28
def on_activate():
29
restored = os.environ.copy()
30
- for k in os.environ.keys():
+ for k in os.environ:
31
if k.startswith("GPS_STARTUP_"):
32
- if gps[k] != "_ABSENT_VARIABLE_":
33
- restored[k[12:]] = os.environ[k]
+ old = k[12:]
+ if os.environ[k] == "_ABSENT_VARIABLE_":
34
+ if old in restored.keys():
35
+ restored.pop(old)
36
+ else:
37
+ restored[old] = os.environ[k]
38
39
path = GPS.current_context().directory()
40
0 commit comments