Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions mkconcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ def _resolve_concore_path():
return os.getcwd()
return SCRIPT_DIR

if len(sys.argv) < 4:
print("usage: py mkconcore.py file.graphml sourcedir outdir [type]")
print(" type must be posix (macos or ubuntu), windows, or docker")
sys.exit(1)

GRAPHML_FILE = sys.argv[1]
TRIMMED_LOGS = True
CONCOREPATH = _resolve_concore_path()
Expand Down Expand Up @@ -202,11 +207,7 @@ def _resolve_concore_path():
logging.error(f"{sourcedir} does not exist")
quit()

if len(sys.argv) < 4:
logging.error("usage: py mkconcore.py file.graphml sourcedir outdir [type]")
logging.error(" type must be posix (macos or ubuntu), windows, or docker")
quit()
elif len(sys.argv) == 4:
if len(sys.argv) == 4:
prefixedgenode = outdir+"_" #nodes and edges prefixed with outdir_ only in case no type specified 3/24/21
concoretype = "docker"
else:
Expand Down