message: Refactor pkgcommand script
  This allows to handle extra files by hand
diff: @@ -126,7 +126,11 @@ def parse_cwl_file(
  Parse a CWL file to extract the provided commands and environments
  """
  package = splitext(basename(file))[0]
  - with open(join('cwl/LaTeX-cwl-master', file), encoding='utf8') as f:
  + if exists(file):
  + filepath = file
  + else:
  + filepath = join('cwl/LaTeX-cwl-master', file)
  + with open(filepath, encoding='utf8') as f:
  lines = f.readlines()
  pkgcmds: Dict[str, Dict[str, str]] = {}
  pkgenvs: Dict[str, Dict[str, str, str]] = {}
  @@ -164,11 +168,12 @@ def parse_cwl_file(
  pkgcmds[name] = command_dict
  continue
  continue
  - remove(join('cwl/LaTeX-cwl-master', file))
  + # remove(join('cwl/LaTeX-cwl-master', file))
  return (pkgcmds, pkgenvs)
  -unimath_dict = parse_unimathsymbols_file()
  +
  +def parse_cwl_files(unimath_dict):
  cwl_files = get_cwl_files()
  for cwl_file in cwl_files:
  (pkgCmds, pkgEnvs) = parse_cwl_file(cwl_file, unimath_dict)
  @@ -184,6 +189,10 @@ for cwl_file in cwl_files:
  # for cmd in pkgCmds:
  # print(cmd, ': ', pkgCmds[cmd], sep = '')
  +
  +if __name__ == "__main__":
  + unimath_dict = parse_unimathsymbols_file()
  + parse_cwl_files(unimath_dict)
  # Handle aggregated files
  for scr in ['scrartcl', 'scrreprt', 'scrbook']:
  dest = '../data/packages/class-' + scr
  