Commit eb6de8b 1 parent a6f6576 commit eb6de8b Copy full SHA for eb6de8b
File tree 4 files changed +14
-29
lines changed
4 files changed +14
-29
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
NOTES.txt
5
5
* .swp
6
6
* .txt
7
- # *-aon .log
8
- # *-aon .err
7
+ * .log
8
+ * .err
9
9
* .pk
10
10
.idea *
11
- * ~
11
+ * ~
12
+ conf.ini
Original file line number Diff line number Diff line change
1
+ [options]
2
+ server_ip =
3
+ search =
Original file line number Diff line number Diff line change 1
- __author__ = 'Maksim Sokolski'
2
-
3
1
import os
4
2
import pickle
5
3
import telnetlib
9
7
10
8
from viewer .notify import view_tk
11
9
from contact .contact import Contact
10
+ import configparser
12
11
13
12
14
13
PATH = os .path .dirname (os .path .realpath (__file__ )) + '/../log/' + \
17
16
FILE_ERR = PATH + '-aon.err'
18
17
FILE_DUMP = os .path .dirname (os .path .realpath (__file__ )) + '/../contact/book.pk'
19
18
20
- HOST = "192.168.52.6" # Log-server IP-address
21
- STR_SEARCH = '577140400' # Searched phone number
19
+ config = configparser .ConfigParser ()
20
+ config .read (os .path .dirname (os .path .realpath (__file__ )) + '/../conf.ini' )
21
+
22
+
23
+ HOST = config .get ('options' , 'server_ip' ) # Log-server IP-address
24
+ STR_SEARCH = config .get ('options' , 'search' ) # Searched phone number
22
25
TEXT = "Incoming call from "
23
26
24
27
CONTACTS_LOCK = threading .Lock ()
You can’t perform that action at this time.
0 commit comments