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))
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.