Hi,
I want to build an embedded Visual C++ project from the python script.
This is what I do -
evc = r'"C:\Program Files\Microsoft eMbedded C++
4.0\Common\EVC\ Bin\EVC.EXE"'
proj = r'"C:\Handheld\ SC10\GFSDK\dev\ Drivers\CE.EVC4 \GFHAL\GFHAL.Vc p"'
config = "GFHAL - Win32 (WCE ARMV4) Release"
print '%s %s /MAKE %s /REBUILD' % (evc, proj, config)
inf, out, err = os.popen3( '%s %s /MAKE %s /REBUILD' % (evc, proj,
config))
print err.readlines()
I get the following error message - "["'C:\\Progr am' is not recognized
as an internal or external command,\n", 'operable program or batch
file.\n']".
I wanted to make sure the path is right. So I tried to open the
project workspace using popen3 and succeeded -
inf, out, err = os.popen3( '%s' % (proj))
Is something wrong with the way i am using the build command in the
script? I am sure the build command is fine because I ran it on the
command line before trying it in the script. Can we not run the build
command from inside the script?
Am I using "/" in /MAKE and /REBUILD correctly in the script?
Thanks,
Ruchika 1 2101
You may have more success using the mangled (8.3)
directory names in your pathnames. The ones with
spaces in them (e.g. Program Files) is the problem.
On my machine the mangled name for Program Files is
Progra~1 (they can be seen with dir /x command at
command prompt). There may be another way to use
the long filenames, but I'll bet this will be the
easiest.
Larry Bates
Syscon, Inc.
"Ruchika" <ru***********@ hotmail.com> wrote in message
news:82******** *************** ***@posting.goo gle.com... Hi,
I want to build an embedded Visual C++ project from the python script. This is what I do -
evc = r'"C:\Program Files\Microsoft eMbedded C++ 4.0\Common\EVC\ Bin\EVC.EXE"' proj = r'"C:\Handheld\ SC10\GFSDK\dev\ Drivers\CE.EVC4 \GFHAL\GFHAL.Vc p"' config = "GFHAL - Win32 (WCE ARMV4) Release"
print '%s %s /MAKE %s /REBUILD' % (evc, proj, config) inf, out, err = os.popen3( '%s %s /MAKE %s /REBUILD' % (evc, proj, config)) print err.readlines()
I get the following error message - "["'C:\\Progr am' is not recognized as an internal or external command,\n", 'operable program or batch file.\n']".
I wanted to make sure the path is right. So I tried to open the project workspace using popen3 and succeeded - inf, out, err = os.popen3( '%s' % (proj))
Is something wrong with the way i am using the build command in the script? I am sure the build command is fine because I ran it on the command line before trying it in the script. Can we not run the build command from inside the script?
Am I using "/" in /MAKE and /REBUILD correctly in the script?
Thanks, Ruchika This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: lamar_air |
last post by:
I have a fortran executable which when run from cmd it asks for a
series of parameters which you enter then hit enter.
From my python cgi script i want to be able to run the executable.
Enter the 4 or 5 parameters needed then end the executable and
redirect to another web page which will display some results given
from an output file from the fortran executable.
When the user clicks submit on the form it seems to hang up on the...
|
by: Rajarshi Guha |
last post by:
Hi,
I have some code that runs an interactive program via popen3(). The program generates
output which is then used later on. My script looks like this:
o,i,e = os.popen3('/usr/local/adapt/bin/descmng -g')
o.write('\n%s\n\n' % (redpick))
o.close()
time.sleep(1)
|
by: Russell E. Owen |
last post by:
I'm trying to launch an application from Python 2.3 on Windows. The
application is "ds9" (an image viewer), and is installed in C:\Program
Files\ds9\ds9
On unix I just do:
os.popen3("ds9")
and close the returned files and all is good. (I'm not trying to
communicate with the program via popen3 and so had been using
os.spawnlp, but that doesn't exist on Windows.)
|
by: Slalomsk8er |
last post by:
I don't get it with the popen (popen3 or subprocess).
1. How do I establish my pipes?
2. And how do I interact with the pipes (interactive CGI-page)?
Thanks, Dominik
|
by: Dave L |
last post by:
I have a VB.NET 2003 solution with several Windows forms projects and a
deployment project. All of that works ok.
I need to run an external script or program during the build process. It
could be done as part of each project or as a separate project that is built
immediately before the deployment project. I can code everything that I need
into the script/program, so the calling interface isn't very important.
How can I do that? The...
| |
by: David Murmann |
last post by:
hi all!
i just built revision 41809 under winxp using a rather uncommon
setup (at least i think so). since i have no visual studio here,
i only used freely available tools: cygwin to get the source, the
microsoft compiler/linker and NAnt (nant.sf.net) as the build tool
to interpret the .vcproj-files (which may be the uncommon part).
as far as i understand this setup is not supported in any way, but
i noticed two problems, that could...
|
by: michael.lang |
last post by:
I am using PostBuild events in a C# project to run some tasks, but only
when in release configuration mode. The build events run perfectly as
expected when run. The problem comes when I save the project, close
VS, and reopen VS and the project.
When I build again, i get a post-build event error. So I open the
event to look at it. Guess what, it is not the post-build event i
saved. Instead all the carriage returns are replaced with...
|
by: Jeffrey Barish |
last post by:
I have an application that has been working fine on Linux, but now I need to
port it to Windows XP. The program uses Popen3 to run another program. I
use Popen3 so that I can access the pid attribute, which I use to kill the
auxiliary program when necessary. Popen3 does not exist on Windows. I see
os.popen2 and os.popen3, but they provide only file objects for stdin,
stdout, and stderr so I don't see a way to kill the auxiliary program...
|
by: Matt Fielder |
last post by:
I need to customize the build process beyond just selecting which projects
get built in what order.
What I want to happen is when I select "Release"
1: Pop a dialog confirming I want to build (release build takes several
minutes, and I regularly forget to switch back to "debug")
2: Build several projects in a specific order.
3: Run a batch file that checks everything out from VSS (can write the batch
file, just need to call it here)
4:...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |