From e9df3d42c48428a41b98fcfd065f89a6c12c7149 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Tue, 3 Jan 2023 10:39:21 +0530 Subject: [build] Add minimal `pyproject.toml` --- setup.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 88716152a..e2520ff6f 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,12 @@ #!/usr/bin/env python3 -import os.path -import subprocess +# Allow execution from anywhere +import os import sys + +sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) + +import subprocess import warnings try: -- cgit v1.2.3