~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to bin/ivle-fetchsubmissions

  • Committer: Matt Giuca
  • Date: 2009-05-12 15:21:57 UTC
  • mto: This revision was merged to the branch mainline in revision 1247.
  • Revision ID: matt.giuca@gmail.com-20090512152157-ueya8fkemrjbo9ju
ivle.util: Backported os.path.relpath from Python2.6 (required).
ivle-fetchsubmissions: Use ivle.util.relpath not os.path.relpath (not
    available pre 2.6).

Show diffs side-by-side

added added

removed removed

Lines of Context:
146
146
            raise OSError("Could not access a file (zipping)")
147
147
        for (dirpath, dirnames, filenames) in \
148
148
            os.walk(source, onerror=error):
149
 
            arc_dirpath = os.path.relpath(dirpath, relativeto)
 
149
            arc_dirpath = ivle.util.relpath(dirpath, relativeto)
150
150
            # Python < 2.6 errors if you add a directory
151
151
            # (This means you can't add an empty directory)
152
152
            if PYTHON26: