Menu

#933 Wrong version of getopt used

closed-fixed
nobody
None
5
2009-06-23
2009-06-19
No

In org.python.pydev.debug_1.4.6.2788/pysrc/runfiles.py getopt.getopt is used to separate options and directories.
However when regexp filters are used in "program arguments", sys.argv looks like this [ 'runfiles.py', '--verbosity', '2', 'dir_with_unit_tests', '-f', 'blabla.*' ].
Both -f and blabla.* will be treated as directories by getopt.getopt (everything after the first non-option argument will be treated like arguments).

Instead, use getopt.gnu_getopt to get the desired behavior.

Discussion

  • Fabio Zadrozny

    Fabio Zadrozny - 2009-06-23

    Done for 1.4.7 (svn: 2820)

    Note that the gnu_getopt had to be copied to the runfiles (because it's not available in jython 2.1)

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2009-06-23
    • status: open --> closed-fixed