ListEnvironments を使用した環境変数の取得

投稿日:2016/9/1 (木) 更新日:

#coding:CP932
 
import arcpy
from arcpy import env
 
environments  = arcpy.ListEnvironments()
 
for environment in environments:
    envSetting = getattr(env, environment)
    print "%-28s: %s" % (environment, envSetting)

関連記事

-プログラミング, ArcGIS
-

Copyright© WINGFIELD since1981 , 2018 All Rights Reserved.