File tree 3 files changed +6
-0
lines changed
3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 8
8
# it has chosen.
9
9
from quamash import QEventLoop , QtGui
10
10
from pyqtgraph import dockarea
11
+ import os
11
12
12
13
from artiq .protocols .file_db import FlatFileDB
13
14
from artiq .protocols .pc_rpc import AsyncioClient
17
18
from artiq .gui .schedule import ScheduleDock
18
19
from artiq .gui .log import LogDock
19
20
21
+ data_dir = os .path .join (os .path .abspath (os .path .dirname (__file__ )),
22
+ ".." , "gui" )
20
23
21
24
def get_argparser ():
22
25
parser = argparse .ArgumentParser (description = "ARTIQ GUI client" )
@@ -51,6 +54,7 @@ def main():
51
54
atexit .register (lambda : schedule_ctl .close_rpc ())
52
55
53
56
win = QtGui .QMainWindow ()
57
+ win .setWindowIcon (QtGui .QIcon (os .path .join (data_dir , "icon.png" )))
54
58
area = dockarea .DockArea ()
55
59
win .setCentralWidget (area )
56
60
status_bar = QtGui .QStatusBar ()
Original file line number Diff line number Diff line change 2
2
3
3
from setuptools import setup , find_packages
4
4
import sys
5
+ import os
5
6
6
7
if sys .version_info [:3 ] < (3 , 4 , 3 ):
7
8
raise Exception ("You need at least Python 3.4.3 to run ARTIQ" )
44
45
packages = find_packages (),
45
46
namespace_packages = [],
46
47
test_suite = "artiq.test" ,
48
+ package_data = {"artiq" : [os .path .join ("gui" , "icon.png" )]},
47
49
ext_modules = [],
48
50
entry_points = {
49
51
"console_scripts" : scripts ,
You can’t perform that action at this time.
0 commit comments