Skip to content
This repository has been archived by the owner on Oct 16, 2022. It is now read-only.

Commit

Permalink
Fixed relativepath misbehaviour on root ending with slash
Browse files Browse the repository at this point in the history
  • Loading branch information
udoprog committed Mar 14, 2010
1 parent e6ba3bc commit 9e0c3ac
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions musync/commons.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,4 @@ def relativepath(self):
if not self.inroot():
return False;

l = len(self.app.lambdaenv.root);

return self.path[l+1:];
return os.path.relpath(self.path, self.app.lambdaenv.root);

0 comments on commit 9e0c3ac

Please sign in to comment.