From: Sebastien M. <seb...@ig...> - 2006-03-13 08:25:16
|
> Hi, >=20 > If you are getting unwanted PyMOL standard errors you can turn them off= =20 > using the cmd.feedback() commands: >=20 > cmd.feedback('disable', 'selector', 'everything') > cmd.feedback('disable', 'executive', 'everything') >=20 >=20 > to turn them on again: >=20 > cmd.feedback('enable', 'selector', 'everything') > cmd.feedback('enable', 'executive', 'everything') >=20 > cmd.feedback('disable', 'all', 'everything') will do exactly as it says= =20 > on the tin. >=20 > otherwise maybe use a Python try:/except: clause? >=20 > eg: >=20 > try: > Instructions to load the map (cmd.load(map)?) > except: > raise IOError('') >=20 >=20 > Jules It's this kind of manipulation I want. Thanks >>> Hello, >>> >>> yes. maybe. if you are talking about printing to standard error, then= : >>> >>> import sys >>> sys.stderr.write("hello, stderr!") >>> >>> will do it. >>> >>> if, on the other hand, you mean something more complicated to do with= =20 >>> manipulating the shell ("redirection"...?) than I don't know, sorry. >>> >>> gilleain torrance >> >> >> I would like to change the current path for stderr to /dev/null by=20 >> example. >> >> I have a plugin which creates a legend box from a fake (empty) apdb=20 >> map. Instruction, which loads the map, sends an error message and I=20 >> would like to hide it. >> >> How can I do ? >> >> Thanks >> >>> >>> Hello, >>> I would like to know if there is a way to manipulate standard err= or >>> redirection into pymol scripting language ? >>> >>> Thanks --=20 S=E9bastien Moretti http://www.igs.cnrs-mrs.fr/ CNRS - IGS UPR 2589 163 Avenue de Luminy, case 934 13288 Marseille cedex 9 (France) |