Vineet Jain (gmail) wrote: > Thanks to all the responses I was able to get preppy to work with ironpython > and silverlight. One question I have is that currently to get this working > in silverlight I have to copy the string and traceback module to the app > folder. Is there any way for the Chiron app to automatically extract the > modules that I need or can I specify them somewhere else instead of having > to move them to the app folder? > >
They need to be in the app folder for Silverlight to be able to import them - so the short answer is no. :-) Dependency tracking for Python modules is a difficult problem and there are Python modules (in the standard library and in projects like py2exe) that do just this. It is unrealistic to expect Silverlight to implement these semantics - especially as it is a tool for Dynamic Silverlight in general and not just for Python. Michael http://www.ironpythoninaction.com/ > Thanks, > > Vineet > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Michael Foord > Sent: Sunday, April 06, 2008 7:00 PM > To: Discussion of IronPython > Subject: Re: [IronPython] Trying to use the library preppy from reportlib in > ironpython and silverlight > > Vineet Jain (gmail) wrote: > >> The following code is in preppy to give syntax errors in the templates: >> >> import traceback >> tb = traceback.format_tb(tb) >> tb = string.join(tb, "\n") >> # how to get the line in the script for the error? >> raise ValueError, "bad script code for %s\n%s\n\n%s\n%s\n%s" % ( >> compilemode, ddblock, t, v, tb) >> >> ironpython does not have the module traceback. Is there some other way to >> > do > >> this? >> >> > > The traceback module works fine with IronPython. You have to make sure > it (and preferably the whole Python standard library) is on your path. > > Michael Foord > http://www.ironpythoninaction.com > > >> Thanks, >> >> Vineet >> >> >> _______________________________________________ >> Users mailing list >> [email protected] >> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >> >> > > _______________________________________________ > Users mailing list > [email protected] > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > > _______________________________________________ > Users mailing list > [email protected] > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > _______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
