Unverified Commit 968c2408 authored by Julien Veyssier's avatar Julien Veyssier
Browse files

allow standalone call of circleKill.py

Signed-off-by: default avatarJulien Veyssier <eneiluj@posteo.net>
parent a775a323
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import dbf
......@@ -95,4 +97,12 @@ def solveCircles(hruList):
# Continue searching in the flow cascade
statusMap[targetHru.id] = 2
targetHru = hruMap[targetHru.toHruId]
\ No newline at end of file
targetHru = hruMap[targetHru.toHruId]
if __name__ == '__main__':
if len(sys.argv) > 2:
inPath = sys.argv[1]
outPath = sys.argv[2]
circleKill(inPath, outPath)
sys.exit('Please provide two arguments: INPUT_PATH OUTPUT_PATH_PREFIX')
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment