Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » STARTED: Python in bazaar
Re: STARTED: Python in bazaar [message #31860 is a reply to message #31856] Thu, 31 March 2011 12:06 Go to previous messageGo to previous message
chickenk is currently offline  chickenk
Messages: 171
Registered: May 2007
Location: Grenoble, France
Experienced Member
PyConsoleCtrlTest works for me under Linux, in both Optimal and Debug modes, with 2 important remarks:

1. I tested with my own upp-waf build system and not theIDE directly since I was too lazy to open up theIDE... Razz I'll try it when I can though

2. On my system (let's say it's a Gentoo even though it's a bit more complicated), python 2.7 library is called libpython2.7.so and I had no debug library associated, so I made the following changes to Python.upp:
library(!DEBUG) python2.7;

library(DEBUG) python2.7;

Another question: is there a way to get the error message or stack trace when python fails? I get the -1 exit code when I write wrong code, but no more precised clue... Is it expected for now?



I also tested other packages, they look good and work nice. Here is another patch I made for PyShell:

Index: bazaar/PyShell/PyShell.h
===================================================================
--- bazaar/PyShell/PyShell.h	(revision 3320)
+++ bazaar/PyShell/PyShell.h	(working copy)
@@ -21,7 +21,7 @@
 		if(!t.IsOpen()) t.Run(THISBACK(Proc));
 	}
 	void Wait() { t.Wait(); }
-	bool IsRunning() const { return AtomicRead(a>0); }
+	bool IsRunning() const { return AtomicRead(a)>0; }
 
 	void Proc(); 


Not sure it's what you expect the function to be but at least it compiles.

Lionel
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: UppGL
Next Topic: Get MAC addresses for windows and linux
Goto Forum:
  


Current Time: Sun Jun 08 15:37:46 CEST 2025

Total time taken to generate the page: 0.04687 seconds