Changeset 196

Show
Ignore:
Timestamp:
10/09/08 14:07:59 (9 years ago)
Author:
grig
Message:

From Phillip Piper:
=======
On Windows, if the project has subdirectories, cheesecake fails to unpack it
properly.

In util.py, the function unzip_package() has this as it's last line:

return unpack_dir.split(os.sep)[0]

Under Windows, os.sep = "\" but I think zip files always use "/" as the path
separator. So for cheesecake to work on my Windows machine, I changed the
above line to be:

return unpack_dir.split("/")[0]

=======

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cheesecake/util.py

    r193 r196  
    190190            outfile.close() 
    191191 
    192     return unpack_dir.split(os.sep)[0] 
     192    return unpack_dir.split("/")[0] 
    193193 
    194194def untar_package(package, destination):