Commits

Stefano Costa committed eb74945

Don't hardcode filenames in the source

  • Participants
  • Parent commits f233d71

Comments (0)

Files changed (1)

 #! /usr/bin/env python3
 # -*- coding: utf-8 -*-
 
+import sys
+
 from urllib.parse import quote_plus
 
 HEADER = """<rdf:RDF
     output.close()
 
 if __name__ == '__main__':
-    make_rdf('arsw-hayes.txt', 'arsw-hayes.rdf')
+    if len(sys.argv) > 2:
+        make_rdf(sys.argv[1], sys.argv[2])
+    else:
+        print('Usage: PROGRAM INPUT OUTPUT')