Changeset d54100ef1932d5938e2a091619e07cefd04a1b04
- Timestamp:
- 07/11/09 17:32:30 (3 years ago)
- Author:
- Nedko Arnaudov <nedko@…>
- Children:
- 6c00179c26506e9c6c29dafe0367a722d38a0e23
- Parents:
- b4eb0c7aa9dbeccc940447bfb888170ebe78fe90
- git-committer:
- Nedko Arnaudov <nedko@arnaudov.name> / 2009-07-11T17:32:30Z+0300
- Message:
-
Fix UI fake launch
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r51bb400
|
rd54100e
|
|
| 883 | 883 | self.bundle_path = "." |
| 884 | 884 | self.shown = False |
| 885 | | return |
| 886 | | |
| 887 | | #print repr(argv) |
| 888 | | self.plugin_uri = argv[1] |
| 889 | | self.bundle_path = argv[2] |
| 890 | | self.human_id = argv[3] |
| 891 | | |
| 892 | | self.recv_pipe_fd = int(argv[4]) |
| 893 | | self.send_pipe_fd = int(argv[5]) |
| 894 | | |
| 895 | | oldflags = fcntl.fcntl(self.recv_pipe_fd, fcntl.F_GETFL) |
| 896 | | fcntl.fcntl(self.recv_pipe_fd, fcntl.F_SETFL, oldflags | os.O_NONBLOCK) |
| 897 | | |
| 898 | | self.recv_pipe = os.fdopen(self.recv_pipe_fd, 'r') |
| 899 | | self.send_pipe = os.fdopen(self.send_pipe_fd, 'w') |
| | 885 | else: |
| | 886 | #print repr(argv) |
| | 887 | self.plugin_uri = argv[1] |
| | 888 | self.bundle_path = argv[2] |
| | 889 | self.human_id = argv[3] |
| | 890 | |
| | 891 | self.recv_pipe_fd = int(argv[4]) |
| | 892 | self.send_pipe_fd = int(argv[5]) |
| | 893 | |
| | 894 | oldflags = fcntl.fcntl(self.recv_pipe_fd, fcntl.F_GETFL) |
| | 895 | fcntl.fcntl(self.recv_pipe_fd, fcntl.F_SETFL, oldflags | os.O_NONBLOCK) |
| | 896 | |
| | 897 | self.recv_pipe = os.fdopen(self.recv_pipe_fd, 'r') |
| | 898 | self.send_pipe = os.fdopen(self.send_pipe_fd, 'w') |
| 900 | 899 | |
| 901 | 900 | if self.plugin_uri == "http://nedko.aranaudov.org/soft/filter/2/mono": |
| … |
… |
|
| 1140 | 1139 | |
| 1141 | 1140 | def send(self, lines): |
| | 1141 | if self.fake: |
| | 1142 | return |
| | 1143 | |
| 1142 | 1144 | for line in lines: |
| 1143 | 1145 | #print 'send: "' + line + '"' |