Changeset 2190:9f125c6074d2
- Timestamp:
- 10/09/09 13:25:22 (11 months ago)
- Author:
- Ronny Pfannschmidt <Ronny.Pfannschmidt@…>
- Branch:
- default
- Message:
-
add the initial generic editor test, there will be tonns of fun
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r2086
|
r2190
|
|
| 82 | 82 | |
| 83 | 83 | def run_pida(): |
| | 84 | #XXX: nasty compat hack |
| | 85 | import os |
| | 86 | os.environ['PIDA_PATH'] = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
| 84 | 87 | b = Boss() |
| 85 | 88 | |
-
|
r2161
|
r2190
|
|
| 180 | 180 | |
| 181 | 181 | def stop(self): |
| 182 | | self._client.quit() |
| | 182 | try: |
| | 183 | self._client.quit() |
| | 184 | except AttributeError: |
| | 185 | # gets stopped before the client can register |
| | 186 | pass |
| 183 | 187 | |
| 184 | 188 | def _get_current_document(self): |
-
|
r2179
|
r2190
|
|
| 21 | 21 | |
| 22 | 22 | # just in case, our pida might not be in the default path |
| 23 | | sys.path.insert(0, os.path.dirname(vim.eval('$PIDA_PATH'))) |
| | 23 | path = vim.eval('$PIDA_PATH') |
| | 24 | if path is None: |
| | 25 | #XXX: hackish, asume we are in the main pida dir |
| | 26 | path = os.getcwd() |
| | 27 | sys.path.insert(0, os.path.dirname(path)) |
| 24 | 28 | |
| 25 | 29 | |