Skip to content

Commit 8c3ed03

Browse files
committed
small clean up
1 parent f3394fb commit 8c3ed03

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

NodeGraphQt/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,9 @@ def __init__(self):
7676
try:
7777
from Qt import QtWidgets, QtGui, QtCore, QtCompat, QtOpenGL
7878
except ImportError as ie:
79-
from Qt import __version__ as qtpy_ver
80-
from Qt import QtWidgets, QtGui, QtCore, QtCompat ,QtOpenGL
81-
print('NodeGraphQt: Can\'t import "Qt.py" module falling back on '
82-
'"Qt ({})"'.format(qtpy_ver))
79+
print('NodeGraphQt: Can\'t import Qt module please install "Qt.py"\n'
80+
'pip install Qt.py')
81+
raise ImportError(ie)
8382

8483
from .base.graph import NodeGraph, SubGraph
8584
from .base.menu import NodesMenu, NodeGraphMenu, NodeGraphCommand

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#!/usr/bin/python
22
# -*- coding: utf-8 -*-
3-
import setuptools
4-
import sys
53
import os
4+
import sys
5+
6+
import setuptools
67

7-
sys.path.append( os.path.join(os.path.dirname(__file__), "NodeGraphQt"))
8+
sys.path.append(os.path.join(os.path.dirname(__file__), "NodeGraphQt"))
89

910
import pkg_info
1011

0 commit comments

Comments
 (0)