Menu

#2 Output file does not show up in the working directory

closed
Greg C
None
4
2008-01-18
2007-07-27
Anonymous
No

Running in a Windows command (DOS) session, the output file is not showing up in . as the help statement says it will. Instead it shows up in the same directory as the input file.

I think the following code is at the root of the problem:

def filename_from_filepath(filepath):
""" Strip the path off a filepath to get a filename"""
try:
return filepath[filepath.rindex('/')+1:]
except ValueError:
return filepath

Windows uses backslashes, so the basename above is the full path.

Discussion

  • Greg C

    Greg C - 2007-10-23
    • assigned_to: nobody --> gregcaporaso
     
  • Greg C

    Greg C - 2007-12-30
    • priority: 5 --> 4
     
  • Nobody/Anonymous

    Logged In: NO

    This appears to be fixed in the Python release, but the binary release still shows the problem.

     
  • David Randolph

    David Randolph - 2008-01-18

    Logged In: YES
    user_id=304339
    Originator: NO

    Okay, the new binary seems to work just fine. This bug can be closed.

     
  • Greg C

    Greg C - 2008-01-18
    • status: open --> closed
     
Auth0 Logo