#283 Error Parsing modules option on Windows

open
other (40)
5
2008-07-10
2008-07-10
No

First i need to say: EPYDOC rocks!

Using a configfile with multible modules, which are in a comma-separated string (look@: http://epydoc.sourceforge.net/manual-reference.html#sample-configuration-file\), containing space within the path names, produces warnings and errors like this on a windows platform:

configfile:
modules: c:\foo\foo bar\fool.py, c:\foo\foo bar\fooles.py

CommandLine Output:

Warning: Name 'C:\\foo\\foo' given
multiple times
Warning: Name 'C:\\foo\\foo' given
multiple times
Error: Could not find a file or object named bar\fool.py
Error: Could not find a file or object named bar\fooles.py
--------------------------------------------------------
I've found a possible cause in cli.py, Line 638:

def _str_to_list(val):
return val.replace(',', ' ').split()

and modified to:
def _str_to_list(val):
return val.replace(',', ' ').split(' ')

afterwards it works, without errors and warnings.

Maybe it's useful to find a more robust implementation to increase platform independency.

Discussion

  • Anonymous

    Anonymous - 2008-07-10
    • summary: Error Parsing modules option under Windows --> Error Parsing modules option onWindows
     
  • Anonymous

    Anonymous - 2008-07-10
    • summary: Error Parsing modules option onWindows --> Error Parsing modules option on Windows
     

Log in to post a comment.