Skip to content

Commit 6132231

Browse files
committed
github workflow complains it can't the built in function open("filename", <mode>) so making it explicit
1 parent d2d8465 commit 6132231

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

volttron/platform/agent/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,8 @@ def is_volttron_running(volttron_home):
902902
pid_file = os.path.join(volttron_home, 'VOLTTRON_PID')
903903
if os.path.exists(pid_file):
904904
running = False
905-
with open(pid_file, 'r') as pf:
905+
import builtins
906+
with builtins.open(pid_file, 'r') as pf:
906907
pid = int(pf.read().strip())
907908
running = psutil.pid_exists(pid)
908909
return running

0 commit comments

Comments
 (0)