Skip to content

Commit bdb9ccb

Browse files
committed
fix loophole
1 parent ad8d2fe commit bdb9ccb

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

scripts/ipc.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
import sys
22
import logging
3+
import coloredlogs
34
from os import path
45

56
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))
67
from jupyddl.automated_planner import AutomatedPlanner
78
from jupyddl.node import Path
89

9-
if "ipc.py" in sys.argv:
10-
sys.argv.remove("ipc.py")
10+
coloredlogs.install(level="WARNING")
11+
12+
for a in sys.argv:
13+
if "ipc.py" in a:
14+
sys.argv.remove(a)
15+
break
1116

1217
if len(sys.argv) != 3:
1318
logging.fatal("Binary should be ran with 3 arguments")

0 commit comments

Comments
 (0)