ArcMap Python Window for quick commands

441
1
08-31-2012 10:37 AM
KevinYanuk
Occasional Contributor
Hello;

I've been reading into how to use Python's optparse (http://docs.python.org/library/optparse.html) to write a few quick and simple "unix-style" commands (stringing some queries, writing some text files of attributes, etc), and I was wondering if anyone knows if ArcMap's Python Window can support this?

I know using python in Windows cmd, the user would be able to use an optparse script as 'python <script> -f output.txt', but I'm not sure whether this can be done with the Python Window ... I've seen optparse used with arcpy:

http://resources.arcgis.com/en/help/main/10.1/index.html#//002q000000rp000000

However, I don't believe this is used within ArcMap.

Any information would be much appreciated! 🙂
Tags (2)
0 Kudos
1 Reply
JasonScheirer
Occasional Contributor III
Can't be done, sorry.
0 Kudos