- 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.
- 潮流:UI設(shè)計必修課
- 我的第一本算法書
- Selenium Design Patterns and Best Practices
- WordPress Plugin Development Cookbook(Second Edition)
- Getting Started with Laravel 4
- RISC-V體系結(jié)構(gòu)編程與實(shí)踐(第2版)
- Express Web Application Development
- Rust游戲開發(fā)實(shí)戰(zhàn)
- Beginning C++ Game Programming
- Node.js 12實(shí)戰(zhàn)
- IDA Pro權(quán)威指南(第2版)
- RubyMotion iOS Develoment Essentials
- ASP.NET開發(fā)寶典
- 軟件測試技術(shù)
- Java程序設(shè)計教程