Skip to content

Commit e9b13f9

Browse files
committed
Edit explorer.py
1 parent 5d26a0f commit e9b13f9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

share/plug-ins/explorer.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@ def can_execute(context):
2626
filter=can_execute
2727
)
2828
def on_activate():
29-
gps = os.environ.copy()
3029
restored = os.environ.copy()
31-
for k in gps.keys():
30+
for k in os.environ.keys():
3231
if k.startswith("GPS_STARTUP_"):
3332
if gps[k] != "_ABSENT_VARIABLE_":
34-
restored[k[12:]] = gps[k]
33+
restored[k[12:]] = os.environ[k]
3534

3635
path = GPS.current_context().directory()
3736

0 commit comments

Comments
 (0)