Skip to content

A feature-rich command-line audio/video downloader

[build] Add minimal `pyproject.toml`

pukkandane9df3d42c484
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000000..75e0100fef
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,3 @@
+[build-system]
+requires = ['setuptools']
+build-backend = 'setuptools.build_meta'
diff --git a/setup.py b/setup.py
index 88716152a4..e2520ff6fc 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: