summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2023-01-19 18:56:07 +0100
committerSlávek Banko <[email protected]>2023-01-20 02:47:10 +0100
commit54d0b09bb53a3be32ea8f3144fddeb4394757283 (patch)
tree5757bfdaf0b86a95f9ccb3159d8bcf5a4f8ecd06
parent7c744f1a0d356f47abb6c881a1fe6e855d17427a (diff)
downloadpytdeextensions-54d0b09bb53a3be32ea8f3144fddeb4394757283.tar.gz
pytdeextensions-54d0b09bb53a3be32ea8f3144fddeb4394757283.zip
Fix import of qtuicompiler in tdedistutils.py.
Signed-off-by: Slávek Banko <[email protected]>
-rwxr-xr-xsetup.py3
-rw-r--r--src/tdedistutils.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 14b3a1b..36fb10d 100755
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,8 @@ import sys
import os
import glob
-from src import tdedistutils
+sys.path.insert(0,"src") # We need this for the import statement below.
+import tdedistutils
def main():
tdedistutils.setup(name="pytdeextensions",
diff --git a/src/tdedistutils.py b/src/tdedistutils.py
index 1fe2950..35cfb28 100644
--- a/src/tdedistutils.py
+++ b/src/tdedistutils.py
@@ -31,7 +31,7 @@ from distutils import log
from distutils import file_util
from distutils import dir_util
from distutils.util import byte_compile
-from src import qtuicompiler
+import qtuicompiler
import stat
import os,os.path,imp,glob
import sys