Make sure setup.py has a valid path.

In some invocation patterns, `os.path.dirname(__file__)` may not return a valid
value. This change defaults to os.curdir in that case.
pull/7287/head
David L. Jones 5 years ago committed by Adam Cozzette
parent 723a85f797
commit 619a8262aa
  1. 2
      python/setup.py

@ -20,7 +20,7 @@ from distutils.command.clean import clean as _clean
from distutils.spawn import find_executable
current_dir = os.path.dirname(__file__)
current_dir = (os.path.dirname(__file__) or os.curdir)
current_dir_relative = os.path.relpath(current_dir)
src_dir = os.path.abspath(os.path.join(current_dir, "..", "src"))
vsprojects_dir = os.path.abspath(os.path.join(current_dir, "..", "vsprojects"))

Loading…
Cancel
Save