[OT] Set temp location for a called process
I'm creating a process (from .NET) that uses python 2.7 to do some stuff, and would prefer that its temporary file space is somewhere other than the default on the C: drive. As you can imagine, with SSD drives in common usage, writing large temporary files could potentially cause some problems. I suspect python is forced to use the Windows environment variable TEMP = %USERPROFILE%\AppData\Local\Temp - I wouldn't want to change that permanently for the user, of course. What are the available options? _ Ian Thomas Victoria Park, Western Australia
Re: [OT] Set temp location for a called process
var processStart = new System.Diagnostics.ProcessStartInfo(c:\app.exe, some arguments); processStart.EnvironmentVariables[TEMP] = @D:\mycustomtemp; var process = new System.Diagnostics.Process(); process.StartInfo = processStart; process.Start(); On Mon, Jul 2, 2012 at 7:58 PM, Ian Thomas il.tho...@iinet.net.au wrote: I’m creating a process (from .NET) that uses python 2.7 to do some stuff, and would prefer that its temporary file space is somewhere other than the default on the C: drive. As you can imagine, with SSD drives in common usage, writing large temporary files could potentially cause some problems. I suspect python is forced to use the Windows environment variable TEMP = %USERPROFILE%\AppData\Local\Temp – I wouldn’t want to change that permanently for the user, of course. What are the available options? -- **Ian Thomas** Victoria Park, Western Australia
RE: [OT] Set temp location for a called process
Corneliu, that's great - I continually forget that .StartInfo has all the Sets in it, whereas Process has only the Gets. I'll give it a try. _ Ian Thomas Victoria Park, Western Australia From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Corneliu I. Tusnea Sent: Monday, July 02, 2012 7:31 PM To: ozDotNet Subject: Re: [OT] Set temp location for a called process var processStart = new System.Diagnostics.ProcessStartInfo(c:\app.exe, some arguments); processStart.EnvironmentVariables[TEMP] = @D:\mycustomtemp; var process = new System.Diagnostics.Process(); process.StartInfo = processStart; process.Start(); On Mon, Jul 2, 2012 at 7:58 PM, Ian Thomas il.tho...@iinet.net.au wrote: I'm creating a process (from .NET) that uses python 2.7 to do some stuff, and would prefer that its temporary file space is somewhere other than the default on the C: drive. As you can imagine, with SSD drives in common usage, writing large temporary files could potentially cause some problems. I suspect python is forced to use the Windows environment variable TEMP = %USERPROFILE%\AppData\Local\Temp - I wouldn't want to change that permanently for the user, of course. What are the available options? _ Ian Thomas Victoria Park, Western Australia
[OT] Anyone using Kinect?
Is anyone using Kinect? Where is the hardware on sale in Oz? _ Ian Thomas Victoria Park, Western Australia