Hi Dirk,

Please find latest version of stubprocess.py attached. This version has fixes 
which make it work under Python 2.6 and correctly handle situation when 
executable to run does not exist or has wrong permissions.

Hope you'll find it useful.

From: scons-dev-boun...@scons.org [mailto:scons-dev-boun...@scons.org] On 
Behalf Of Dirk Bachle
Sent: Sunday, April 06, 2014 6:02 PM
To: scons-dev@scons.org
Subject: Re: [Scons-dev] Subprocess issue on Linux?

Hi Eugene,

thanks a lot for your quick answer and very helpful advice.

On 06.04.2014 15:21, Leskinen, Eugene wrote:
I have just place the stubprocess.py to 
/opt/python27/lib/scons-2.1.0/SCons/Platform/ directory and added 'import 
stubprocess' statement to SCons.Platfrom.posix module just after import 
subprocess:
--- /opt/python27/lib/scons-2.1.0/SCons/Platform/posix.py       2014-04-06 
17:17:30.000000000 +0400
+++ /opt/python27/lib/scons-2.1.0/SCons/Platform/posix.py.new   2014-04-06 
17:17:07.000000000 +0400
@@ -36,6 +36,7 @@
import os
import os.path
import subprocess
+import stubprocess
import sys
import select

This what worked for me.

This approach works on my side too. I had tried to copy-paste part of the 
source code directly to the top of "SCons/Platform/posix.py", which gave me the 
reported errors.

Best regards,

Dirk

--------------------------------------------------------------------
Closed Joint Stock Company Intel A/O
Registered legal address: Krylatsky Hills Business Park, 
17 Krylatskaya Str., Bldg 4, Moscow 121614, 
Russian Federation

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

Attachment: stubprocess.py
Description: stubprocess.py

_______________________________________________
Scons-dev mailing list
Scons-dev@scons.org
http://two.pairlist.net/mailman/listinfo/scons-dev

Reply via email to