Skip to content
Snippets Groups Projects
Commit 2b509513 authored by Vincent Texier's avatar Vincent Texier
Browse files

Add bin/cutecoin command

Simply run .../bin/cutecoin command from anywhere without installing or freezing cutecoin
Handle ctrl-c signal to quit
parent 88ee0d16
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ dist ...@@ -10,7 +10,7 @@ dist
build build
eggs eggs
parts parts
bin bin/[a-b,d-z]
var var
sdist sdist
develop-eggs develop-eggs
...@@ -35,6 +35,7 @@ nosetests.xml ...@@ -35,6 +35,7 @@ nosetests.xml
.project .project
.pydevproject .pydevproject
.settings .settings
.idea
# Generated files # Generated files
src/cutecoin/gen_resources/* src/cutecoin/gen_resources/*
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on 1 févr. 2014
@author: inso
"""
import signal
import sys
import os
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../lib')))
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../src')))
from PyQt5.QtWidgets import QApplication, QDialog
from cutecoin.gui.mainWindow import MainWindow
from cutecoin.core.app import Application
if __name__ == '__main__':
# activate ctrl-c interrupt
signal.signal(signal.SIGINT, signal.SIG_DFL)
cutecoin = QApplication(sys.argv)
app = Application(sys.argv)
window = MainWindow(app)
window.show()
sys.exit(cutecoin.exec_())
pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment