- 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.
- Mastering JavaScript Object-Oriented Programming
- Java入門(mén)經(jīng)典(第6版)
- 垃圾回收的算法與實(shí)現(xiàn)
- Java高并發(fā)核心編程(卷2):多線(xiàn)程、鎖、JMM、JUC、高并發(fā)設(shè)計(jì)模式
- Python Deep Learning
- TypeScript 2.x By Example
- RESTful Web Clients:基于超媒體的可復(fù)用客戶(hù)端
- Android系統(tǒng)下Java編程詳解
- Magento 2 Beginners Guide
- Building a Media Center with Raspberry Pi
- Enterprise Application Architecture with .NET Core
- Python量子計(jì)算實(shí)踐:基于Qiskit和IBM Quantum Experience平臺(tái)
- Server Side development with Node.js and Koa.js Quick Start Guide
- HTML 5與CSS 3權(quán)威指南(第4版·下冊(cè))
- Learning HTML5 by Creating Fun Games