kentnl / File-ShareDir-ProjectDistDir

Simple set-and-forget using of a '/share' directory in your projects root
Other
5 stars 5 forks source link

fixed infinite loop in _devel_sharedir #3

Closed tantalor closed 12 years ago

tantalor commented 12 years ago

See #2

kentfredric commented 12 years ago

Unfortunately it proved to be slightly more problematic than this patch suggests:

File::Spec->catdir($dir->absolute->dir_list) eq File::Spec->rootdir()

Is the sort of magic that seems to be necessary to get a portable path check.