You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
917 B

6 years ago
  1. #!/usr/bin/env python3
  2. from util import script as scrUt
  3. import configparser
  4. import os
  5. def main():
  6. args = __parseArgs()
  7. print(args)
  8. def __parseArguments():
  9. parser = scrUt.ArgParser()
  10. parser.addInstanceDirArg()
  11. parser.addArg(alias="instanceDir", shortFlag="i", longFlag="instance_dir",
  12. help="the directory with all instance files", type=str)
  13. parser.addArg(alias="outputDir", shortFlag="o", longFlag="output_dir",
  14. help="the directory to store the minisat results for each instance",
  15. type=str)
  16. parser.addArg(alias="configFile", shortFlag="c", longFlag="config",
  17. help="config file (default: ./satlab.config)",
  18. type=str, default=os.path.join(".", "satlab.config"))
  19. arguments = parser.parse()
  20. if __name__ == "__main__":
  21. main()