origapp = sys.executable if "ArcMap" in origapp: arcpy.AddMessage("...The python script is being executed from ArcGIS/Toolbox") elif "Pythonwin.exe" in origapp: print "...The python script is being executed from PythonWin"
sys.executable.
value = sys.stdout print value
value = sys.stdout arcpy.AddMessage(str(value))
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.