mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-01 18:33:05 +03:00
setup.py: only use real paths
This commit is contained in:
parent
3f3a7b1b06
commit
d999a8b170
5
setup.py
5
setup.py
|
@ -37,7 +37,10 @@ _LIB_IMAGING = (
|
||||||
|
|
||||||
|
|
||||||
def _add_directory(path, dir, where=None):
|
def _add_directory(path, dir, where=None):
|
||||||
if dir and os.path.isdir(dir) and dir not in path:
|
if dir is None:
|
||||||
|
return
|
||||||
|
dir = os.path.realpath(dir)
|
||||||
|
if os.path.isdir(dir) and dir not in path:
|
||||||
if where is None:
|
if where is None:
|
||||||
path.append(dir)
|
path.append(dir)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user