Zarko Coklin
2016-05-10 20:07:55 UTC
Hi all!
Long story short, I work on a project and it uses Scons to build the SW. On my PC I was using it for a long time. It worked just fine. Lately, some change has happened on my PC and now when I run Scons from Python and invoke os.system() it keeps failing. The error reported is somewhat cryptic: 'The system cannot find the path specified' error. Very annoying!
For example, if the Python file invokes:
os.system("scons --version")
The output in DOS is:
The system cannot find the path specified.
SCons by Steven Knight et al.:
script: v2.2.0.issue-2856:2676:d23b7a2f45e8[MODIFIED], 2012/08/05 15:38:28, by garyo on oberbrunner-dev
engine: v2.2.0.issue-2856:2676:d23b7a2f45e8[MODIFIED], 2012/08/05 15:38:28, by garyo on oberbrunner-dev
engine path: ['C:\\Python27\\Scripts\\..\\Lib\\site-packages\\scons-2.2.0\\SCons']
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 The SCons Foundation
I am using Pyton 2.7.3 and Scons version 2.2.0. Anybody has any idea what path is in question and how to debug the problem? Help is very much appreciated.
Regards,
Zarko
Long story short, I work on a project and it uses Scons to build the SW. On my PC I was using it for a long time. It worked just fine. Lately, some change has happened on my PC and now when I run Scons from Python and invoke os.system() it keeps failing. The error reported is somewhat cryptic: 'The system cannot find the path specified' error. Very annoying!
For example, if the Python file invokes:
os.system("scons --version")
The output in DOS is:
The system cannot find the path specified.
SCons by Steven Knight et al.:
script: v2.2.0.issue-2856:2676:d23b7a2f45e8[MODIFIED], 2012/08/05 15:38:28, by garyo on oberbrunner-dev
engine: v2.2.0.issue-2856:2676:d23b7a2f45e8[MODIFIED], 2012/08/05 15:38:28, by garyo on oberbrunner-dev
engine path: ['C:\\Python27\\Scripts\\..\\Lib\\site-packages\\scons-2.2.0\\SCons']
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 The SCons Foundation
I am using Pyton 2.7.3 and Scons version 2.2.0. Anybody has any idea what path is in question and how to debug the problem? Help is very much appreciated.
Regards,
Zarko