- ArcPy and ArcGIS:Geospatial Analysis with Python
- Silas Toms
- 181字
- 2021-07-23 20:23:07
Make Python scripts executable when clicked on
The final step in making the scripts run when double-clicked (which also means they can run outside of the ArcGIS environment, saving lots of memory overhead) is to associate files with the .py
extension with the Python interpreter. If the scripts have not already been associated with the interpreter, they will appear as files of an unknown type or as a text file.
To change this, right-click on a Python script. Select Open With, and then select Choose Default Program. If python.exe
or pythonw.exe
does not appear as a choice, navigate to the folder that holds them (C:\Python27\ArcGIS10.2
, in this case) and select either python.exe
or pythonw.exe
. Again, the difference between the two is the appearance of a terminal window when the scripts are run using python.exe
, which will contain any output from the script (but this window will disappear when the script is done). I recommend using pythonw.exe
when executing scripts, and python.exe
to test code.
- Java多線程編程實戰指南:設計模式篇(第2版)
- Dynamics 365 Application Development
- JavaScript語言精髓與編程實踐(第3版)
- Instant 960 Grid System
- Java Web程序設計
- Troubleshooting PostgreSQL
- Python Data Analysis(Second Edition)
- Nginx實戰:基于Lua語言的配置、開發與架構詳解
- OpenStack Orchestration
- 區塊鏈底層設計Java實戰
- 西門子S7-200 SMART PLC編程從入門到實踐
- RESTful Java Web Services(Second Edition)
- FFmpeg開發實戰:從零基礎到短視頻上線
- SQL Server 2008中文版項目教程(第3版)
- Emotional Intelligence for IT Professionals