commit 7848ac33618a142dcef732d735f9adf3582edaa2 Author: Michał Górny Date: Sat Apr 17 14:57:12 2010 +0200 Convert wrapped getcwd() result back to byte format to make it suitable for comparison with os.environ['PWD']. diff --git a/bin/ebuild b/bin/ebuild index 3eaea94..35a03fc 100755 --- a/bin/ebuild +++ b/bin/ebuild @@ -112,7 +112,7 @@ if pf is None: sys.exit(1) if not os.path.isabs(ebuild): - mycwd = os.getcwd() + mycwd = portage._unicode_encode(os.getcwd(), encoding=portage._encodings['fs']) # Try to get the non-canonical path from the PWD evironment variable, since # the canonical path returned from os.getcwd() may may be unusable in # cases where the directory stucture is built from symlinks.