diff --git a/rmview/__init__.py b/rmview/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/rmview/__main__.py b/rmview/__main__.py new file mode 100644 index 0000000..3a3d519 --- /dev/null +++ b/rmview/__main__.py @@ -0,0 +1,8 @@ +from .rmview import * + +if __name__ == '__main__': + log.setLevel(logging.INFO) + QCoreApplication.setAttribute(Qt.AA_EnableHighDpiScaling) + ecode = rMViewApp(sys.argv).exec_() + print('\nBye!') + sys.exit(ecode) diff --git a/src/connection.py b/rmview/connection.py similarity index 100% rename from src/connection.py rename to rmview/connection.py diff --git a/src/rfb.py b/rmview/rfb.py similarity index 100% rename from src/rfb.py rename to rmview/rfb.py diff --git a/src/rmparams.py b/rmview/rmparams.py similarity index 100% rename from src/rmparams.py rename to rmview/rmparams.py diff --git a/src/rmview.py b/rmview/rmview.py similarity index 98% rename from src/rmview.py rename to rmview/rmview.py index 78877a8..b14ea77 100644 --- a/src/rmview.py +++ b/rmview/rmview.py @@ -2,12 +2,12 @@ from PyQt5.QtGui import * from PyQt5.QtWidgets import * from PyQt5.QtCore import * -import resources -from workers import FrameBufferWorker, PointerWorker -from connection import rMConnect -from viewer import QtImageViewer +from . import resources +from .workers import FrameBufferWorker, PointerWorker +from .connection import rMConnect +from .viewer import QtImageViewer -from rmparams import * +from .rmparams import * import sys import os diff --git a/src/viewer.py b/rmview/viewer.py similarity index 100% rename from src/viewer.py rename to rmview/viewer.py diff --git a/src/workers.py b/rmview/workers.py similarity index 99% rename from src/workers.py rename to rmview/workers.py index 42f866e..1c2c630 100644 --- a/src/workers.py +++ b/rmview/workers.py @@ -2,7 +2,7 @@ from PyQt5.QtGui import * from PyQt5.QtWidgets import * from PyQt5.QtCore import * -from rmparams import * +from .rmparams import * import paramiko import struct @@ -17,7 +17,7 @@ from twisted.internet.protocol import Protocol from twisted.internet import protocol, reactor from twisted.application import internet, service -from rfb import * +from .rfb import * try: IMG_FORMAT = QImage.Format_Grayscale16 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..1e712b1 --- /dev/null +++ b/setup.py @@ -0,0 +1,7 @@ +from setuptools import setup, find_packages + +setup( + name='rmview', + packages=['rmview'], + install_requires=['pyqt5', 'paramiko', 'twisted'] +)