I'm writing a crossplatform python script on windows using Eclipse with the Pydev plugin. The script makes use of the os.symlink()
and os.readlink()
methods if the current platform isn't NT.
Since the os.symlink()
and os.readlink()
methods aren't available on the Windows platform Pydev flags them as undefined variables--like so:
Question:
Is there a way to ignore specific undefined variable name errors without modifying my source file?
edit: I found a way to ignore undefined variable errors from this answer on stackoverflow.
I'll leave the question open in case there is a way to solve this using project file or Pydev setting.