首页 > 其他分享 >[879] Run stand-alone scripts of arcpy

[879] Run stand-alone scripts of arcpy

时间:2023-09-20 11:38:11浏览次数:34  
标签:bat Run script 879 stand scripts alone run propy

Ref: Run stand-alone scripts

plain paste in Windows: shift+ctrl+V


How do I run a stand-alone script?

In other ArcGIS products, a Python script is run from a command prompt as follows:

c:\python27\ArcGIS10.8\python.exe my_script.py

In ArcGIS Pro, you can run the same script using the following updated path:

c:\Progra~1\ArcGIS\Pro\bin\Python\scripts\propy.bat my_script.py

Here, propy.bat acts as a replacement for calling python.exe.

 

In my case, I have added the directory of propy.bat to the environental variable. Then I can call propy.bat anywhere in my computer.

PS C:\Users\User\PycharmProjects\pythonProject> propy.bat main.py

For the above command, we should navigate to the directory of the python script, then we can run the script.

标签:bat,Run,script,879,stand,scripts,alone,run,propy
From: https://www.cnblogs.com/alex-bn-lee/p/17716873.html

相关文章

  • mysql TRUNCATE DELETE DROP
    https://www.cnblogs.com/cy0628/p/15019630.html     truncate与drop,delete的对比(重要)12345678上面说过truncate与delete,drop很相似,其实这三者还是与很大的不同的,下面简单对比下三者的异同。 truncate与drop是DDL语句,执行后无法回滚;delete是DML......
  • vue:run时报错:EACCES: permission denied([email protected])
    一,报错信息:[eslint]EACCES:permissiondenied,open'/data/vue/responsive/node_modules/.cache/eslint/43541cdc.json’如图:二,解决切换拒绝访问的文件的ownerliuhongdi@lhdpc:/data/vue/responsive$sudochownliuhongdi.liuhongdi-R/data/vue/responsive/node......
  • Oracle中的Round和Trunc函数区别
     一、Oracle中的Round和Trunc:如同对数字进行四舍五入和按位截取一样,Oracle对时间日期也提供了这两种功能。但比起对数字进行四舍五入和截取比较复杂:这是因为时间日期是有格式的。下面看看这两个函数的定义和用途:ROUND(date[,format])TRUNC(date[,format])round四舍五入算法rou......
  • 《基础语法篇》trunc的使用
    日期selectsysdatefromdual--当时日期selecttrunc(sysdate)fromdualselecttrunc(sysdate,'DD')fromdual--今天日期selecttrunc(sysdate,'d')+7fromdual--本周星期日selecttrunc(sysdate,'dy')+7fromdual--本周星期日selecttrunc(s......
  • hbase truncate table后没有释放空间
    HBase中的truncatetable操作会清空表中的所有数据,但不会立即释放物理存储空间。这是因为HBase使用一种称为“MajorCompaction(主要合并)”的过程来清理和释放存储空间。MajorCompaction是HBase自动执行的周期性任务,通常在后台进行。MajorCompaction将删除表中已标记为删除的数......
  • 关于`dial unix /var/run/docker.sock: connect: permission denied`的处理方法笔记
    之前遇到的一个问题,使用非root用户时操作docker提示无权限,在查阅了一些文章之后自己又摸索出了一些更方便的方法,顺手记录下来。一、问题发现根据报错信息dialunix/var/run/docker.sock:connect:permissiondenied,可以看出,是因为当前用户对docker使用的unixdomainsocket......
  • RunnerGo:一款全栈测试平台
    做软件测试的同学在工作时应该都碰到过这种情况:接口管理、接口测试用postman、Apipost等接口管理工具,性能测试用jmeter、loadrunner等性能测试工具,接口自动化则是jmeter脚本或者python脚本配合jenkins使用。这种情况极大的降低了研发效率,今天给大家推荐一款入选GiteeGVP的开源测......
  • APR does not understand this error code【Svn】
     背景:金蝶云星空协同开发模式,源代码使用的是svn。 业务场景:打开BOS设计器,svn报错:发生时间:2023-09-1808:44:01错误来源:System.Windows.Forms错误信息:Errorrunningcontext:APRdoesnotunderstandthiserrorcode====================================......
  • vue3 浏览器“Uncaught runtime errors:” 全屏报错提示关闭
      在项目的vue.config.js中配置module.exports={devServer:{client:{overlay:false//编译错误时,取消全屏覆盖(建议关掉)}}}......
  • 工作这么多年,还分不清truncate、delete和drop?
    前言在使用SQL(StructuredQueryLanguage)进行数据库操作时,我们经常会遇到需要删除数据或表的情况。而在这些场景中,我们常常使用truncate、delete和drop这三个关键词。尽管它们都有删除数据的作用,但是它们之间还是存在一些差别。在本篇文章中,我们将深入探讨truncate、delete和drop......