Skip to content

Commit

Permalink
modification to pick up data
Browse files Browse the repository at this point in the history
  • Loading branch information
darioflute committed Jul 14, 2017
1 parent 31513cb commit bbb77fb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include fifimon/copyright.txt
include fifimon/icons/*.png
6 changes: 4 additions & 2 deletions fifimon/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,8 @@ def __init__(self):
QMainWindow.__init__(self)
self.setAttribute(Qt.WA_DeleteOnClose)
# self.setWindowTitle("application main window")
path0 = sys.path[0]
#path0 = sys.path[0]
path0, file0 = os.path.split(__file__)

# Background color (FFF7C0 is buttermilk, DCAE1D is honey, F2D388 is butter)
# Colors from https://designschool.canva.com/blog/website-color-schemes/
Expand Down Expand Up @@ -637,7 +638,8 @@ def closeEvent(self, ce):
self.fileQuit()

def about(self):
path0 = sys.path[0]
# path0 = sys.path[0]
path0,file0 = os.path.split(__file__)
file=open(path0+"/copyright.txt","r")
message=file.read()
QMessageBox.about(self, "About", message)
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@
download_url='https://github.com/darioflute/fifimon',
license='GPLv3+',
packages=['fifimon'],
scripts=['bin/fifimon']
scripts=['bin/fifimon'],
include_package_data=True,
package_data={'fifimon':['icons/*.jpg']},
data_files=[('fifimon',['copyright.txt'])]
)

0 comments on commit bbb77fb

Please sign in to comment.