Adjust imports
This commit is contained in:
parent
26368f0b90
commit
7f45b178c9
5
setup.py
5
setup.py
|
|
@ -10,7 +10,8 @@ import re
|
||||||
import ast
|
import ast
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
from pathlib import Path
|
import pathlib
|
||||||
|
|
||||||
# Add repo root to path so we can import scripts. Prior to PEP517 support this
|
# Add repo root to path so we can import scripts. Prior to PEP517 support this
|
||||||
# was the default behavior for setuptools.
|
# was the default behavior for setuptools.
|
||||||
# https://github.com/pypa/setuptools/issues/3939#issuecomment-1573619382
|
# https://github.com/pypa/setuptools/issues/3939#issuecomment-1573619382
|
||||||
|
|
@ -24,7 +25,7 @@ import setuptools
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
BASEDIR = Path(__file__).resolve().parent
|
BASEDIR = pathlib.Path(__file__).resolve().parent
|
||||||
except NameError:
|
except NameError:
|
||||||
BASEDIR = None
|
BASEDIR = None
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue