Skip to content

Commit

Permalink
Removed a TODO tag and addded some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
liutng committed Oct 2, 2022
1 parent b39a931 commit f336779
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions SSG/utils/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ def readConfigFile(arg = ""):
jsonMap = json.load(jsonFile)
if len(jsonMap) == 0:
raise SystemExit(f"Config file doesn't contain necessary input and output arguments.")
## TODO Add config file parsing code
else:
input = jsonMap["input"] if jsonMap.__contains__("input") else "";
lang = jsonMap["lang"] if jsonMap.__contains__("lang") else "";
input = jsonMap["input"] if jsonMap.__contains__("input") else ""; # Check if argument "input" is included in the config file
lang = jsonMap["lang"] if jsonMap.__contains__("lang") else ""; # Check if argument "lang" is included in the config file.
if len(input) != 0:
parseInput(input,lang)
else:
Expand Down

0 comments on commit f336779

Please sign in to comment.