Re: [Pydev-code] Getting started with PyDev scripting
Brought to you by:
fabioz
From: Don T. <nos...@gm...> - 2006-04-15 01:08:47
|
Don Taylor wrote: > if False: > from org.python.pydev.editor import PyEdit #@UnresolvedImport > cmd = 'command string' > editor = PyEdit > > sorts out cmd and editor, but at the expense of another False failure. One way of getting rid of all of the True/False warnings in Pydev extensions is to use: if False: #@UndefinedVariable # None of this code will be executed, but it will stop Pydev # extensions from complaining about undefined variables. from org.python.pydev.editor import PyEdit #@UnresolvedImport cmd = 'command string' editor = PyEdit False = False #@UndefinedVariable True = True #@UndefinedVariable any further uses of True or False will not cause undefined variable errors because of these bogus assignments. Don. |