gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] find client/ -exec sed -i "s/wx\([^.]\)/wx.\1/g" \{}


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] find client/ -exec sed -i "s/wx\([^.]\)/wx.\1/g" \{} \;
Date: Wed, 28 Sep 2005 16:56:02 +0200
User-agent: Mutt/1.5.9i

> Karsten Hilbert wrote:
> > I have used a modified version of this to replace all wx.wx* to wx.*.
> > 
> > We would need a script which replaces all "wx*" that are not
> > "wx.*" with "wx.*" -
> mine alreasy does that with [^.]
I know, except it does not ...

> > except in comment lines (\s|\t+#).
... do this.

> Why? if it says wx.Panel in the code, why not in the comment?
Because the comments may hold things such as
"# wx.wxFoo -> wx.Foo updates"

> Sure wx.GTK and wx.Windows look stupid, it's easy to wind
> those back with a few more sed commands, as I have done.
I guess you are correct. Hey, feel free to change the code...

> >>wx.Foo simply *doesn't work* when "from wxPython import wx" is used,
> > 
> > Correct (it does in my installation but then "if not
> > os.environ['user'] == 'ncq'  :-) 
> no idea how, but I suppose it's not my problem anymore.
Yep.

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346




reply via email to

[Prev in Thread] Current Thread [Next in Thread]