[Distutils] Proposed bdist_dumb fix
A.M. Kuchling
amk@amk.ca
Thu Nov 21 20:25:01 2002
On Thu, Nov 21, 2002 at 03:05:25PM -0600, Steven Knight wrote:
> _, t = os.path.splitdrive(t)
> if os.path.isabs(t):
> t = t[1:]
> archive_root = os.path.join(self.bdist_dir, t)
>
>Directly examining the first character loses on some systems. Old MacOS
>path names use a leading separator (:) to specify a *relative* path
>name, for example.
Hm, so won't this code still be incorrect on the Mac? Will it have to
be something like this?
if os.path.isabs(t):
if platform == 'macos':
t = os.sep + t
else:
t = t[1:]
--amk