import osimport sysimport urllibif len( sys.argv ) != 3: sys.exit( "Incorrect number of arguments." )if os.name == "nt" or os.name == "dos": editor = "notepad.exe"elif os.name == "posix": editor = "vi"else: sys.exit( "Unsupported OS" )urllib.urlretrieve( sys.argv[ 1 ], sys.argv[ 2 ] )os.execvp( editor, ( editor, sys.argv[ 2 ] ) )
Name (required)
email (will not be published) (required)
Website