Commits

falsetru  committed 12a4e26

Use wget on linux

  • Participants
  • Parent commits 13d5d9b

Comments (0)

Files changed (1)

 #!/usr/bin/python
 
 import subprocess, sys
-subprocess.call([sys.executable, '-m', 'contest.main', sys.executable, '-m', 'urllib', 'http://localhost:8080/test?format=plain'])
+url = 'http://localhost:8080/test?format=plain'
+if sys.platform == 'win32':
+    subprocess.call([sys.executable, '-m', 'contest.main', sys.executable, '-m', 'urllib', url])
+else:
+    subprocess.call([sys.executable, '-m', 'contest.main', 'wget', '-q', '-O-', url])