I finally found how to use this pyperforce.
I was simply missing a package, The package name is PyProtocols.
now that it is install, I can finally run my PyPerforce.
User Profile
Collapse
-
Presently I have the Perforce package which is in the site-packages directory. I also have the twisted package which is also in the site-packages directory. The results.py file is in the Perforce package and the protocols.py is in the twisted package.
Also I am not even sure if the protocols module is the right on for this import since I am not the one who implemented this results.py.
Also I know that the import...Leave a comment:
-
How to use the PyPerforce api
I want to automate perforce. So I am using the PyPerforce given on the http://pyperforce.sour ceforge.net web site. The problem I am facing is that it is not in the python script, results.py, it does not seem to find an import it is doing.
In results.py it is doing an import protocols but it can't be find anywhere. The only protocols.py or a folder called protocols is from a package called Twisted. I even tried changing the... -
Exactly, that is my problem, the popen function, does not return everthing I am expecting. I did try the following but it did only return a couple of lines.
I am not seing the result of the built....Code:RetBuild = os.popen(CmdLine).read().split('\n')Leave a comment:
-
When using the os.system command, I see all of the proper output in my cmd window. It is as if the os.system and os.popen are not returning the same thingLeave a comment:
-
One other point is I do retrieve some little information from the build such as this line
(C) Copyright OPUS Software 1987-91. All rights reserved.
This line is probably the compiler header. So I can retrieve this line with no problem in my log file. But the information I am looking is a line at the end of the build to see if the build was successfull such as the following line: Output.out is up to date
This...Leave a comment:
-
Sorry, I forgot to mention that fpLog is from a class i built. So bassically, fpLog.write(Lin e) write a line in a file. This has no problem, and also I do build using different tools such with visual C++ using the msdev and I do retrieve all the build information. But with the make, I can't retrieve all the build information that I do see when building using directly the command line in a Cmd Window....Leave a comment:
-
how to retrieve output from makefile build
When building using a makefile, is there a way to retrieve all the output build generated by the make file. Because when i build with a cmd window, all the output of the build shows in the cmd window. But when using the same command in python, it seems that I can't retrieve all the build info. It does build properly but the information I am trying to retrieve is not there. I am using the os.popen function but it is not working well.
... -
Here is a sample of code.
#TiDirectory is the Ti directory of code composer when installing the application
os.popen(TiDire ctory + "/cc/bin/timake" + " Project.pjt " + "Release")
You may learn more on this timake on google.
Hope this helps a lotLeave a comment:
-
After several hours of experiencing how to automate build in code composer, I finally found a special Make, the timake. Which you pass the project as an parameter. So I basically use the os.system command to execute it.
Thanks for the advise.Leave a comment:
-
How to automate Build with Code Composer?
Hello, I am new at Python, approximately 2 weeks of experience, could someone help me please.
I am trying to Automate build in Code Composer c5000 version 2.21. I am able to open a project and Build it. But the problem is that I can't specify the configuration. I presently have 3 different configuration for my project: Debug, Release and Simulation. Since the first configuration for the project is Debug, It is by default set to...
No activity results to display
Show More
Leave a comment: