Changeset 2190:9f125c6074d2

Show
Ignore:
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:
3 added
3 modified

Legend:

Unmodified
Added
Removed
  • pida/core/application.py

    r2086 r2190  
    8282 
    8383def 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__))) 
    8487    b = Boss() 
    8588 
  • pida/editors/emacs/emacs.py

    r2161 r2190  
    180180 
    181181    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 
    183187 
    184188    def _get_current_document(self): 
  • pida/resources/data/pida.vim

    r2179 r2190  
    2121 
    2222# just in case, our pida might not be in the default path 
    23 sys.path.insert(0, os.path.dirname(vim.eval('$PIDA_PATH'))) 
     23path = vim.eval('$PIDA_PATH') 
     24if path is None: 
     25    #XXX: hackish, asume we are in the main pida dir 
     26    path = os.getcwd() 
     27sys.path.insert(0, os.path.dirname(path)) 
    2428 
    2529