Changeset 1748

Show
Ignore:
Timestamp:
11/09/08 00:21:19 (2 months ago)
Author:
Chuck.Esterbrook
Message:

Support file paths with both backslash (foo\bar.cobra) and forward slash (foo/bar.cobra) regardless of platform.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/Source/CommandLine.cobra

    r1746 r1748  
    11411141                Validate arg as filename and on success add into fileList 
    11421142                """ 
     1143                sep = Path.directorySeparatorChar.toString 
     1144                arg = arg.replace('\\', sep).replace('/', sep) 
    11431145                if File.exists(arg) 
    11441146                        fileList.add(arg)