Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I often run scripts now with 64 bit background processing enabled but when I want to use certain tools like Xtools table to text I have to turn it off as these tools are 32 bit. Is there a way to switch this within a script say... (Geoprocessing_Enable is fictional)

#start at 64 then change to 32 for Xtools
arcpy.Geoprocessing_Enable(32)

arcpy.XToolsPro_Table2Text(in, out, fields)

#go back to 64 after 32 bit tool ran successfully
arcpy.Geoprocessing_Enable(64)

Is there anything equivalent to doing this?

share|improve this question
    
This is a question better asked on stackoverflow.com... –  awesomo Apr 24 '13 at 16:38

1 Answer 1

up vote 8 down vote accepted

No. Once you've started executing your script at prompt, you're in either the 32 or 64 bit space. [yes you could do some sort of multiprocess or os.system call out to 32 or 64bit, but thats at your own risk and I've heard nothing but problems when people do this.]

See this blog article about specifying what "bits" to run against. In short, you'll need to break up your script into pieces and call them against the version of Python they work with.

share|improve this answer
    
KHibma, thanks. Figure I'll stay in 32 for all scripts rather than split. Most of my big merges(joins) are in Stata64 .do files now. –  GIS Danny Apr 24 '13 at 18:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.