lundi 5 janvier 2015

How to put a .py file on a web host and use it in the command prompt?


So I have a python file that runs a method when it opens a file.


Ie. my python.py file opens test.txt and puts it data into another file.


The test.txt file is on my local PC, but I want the python.py to be on a webhost, so that anyone can link to it, and I can distribute my software.


In the command prompt, I type 'python python.py test.txt' (to use my python file) but when I did 'python http://ift.tt/1BAjf4e test.txt' it did not work.


Is there any way that this would work? I do not want to have my users be forced to re-download every update :)





Aucun commentaire:

Enregistrer un commentaire