Книга: Automate the Boring Stuff with Python: Practical Programming for Total Beginners
Назад: A. Installing Third-Party Modules
Дальше: D. Resources

.

From System variables, select the Path variable and click Edit. In the Value text field, append a semicolon, type C:\MyPythonScripts, and then click OK. Now you can run any Python script in the C:\MyPythonScripts folder by simply pressing WIN-R and entering the script’s name. Running pythonScript, for instance, will run pythonScript.bat, which in turn will save you from having to run the whole command py.exe C:\ MyPythonScripts\pythonScript.py from the Run dialog.

© RuTLib.com 2015-2018