#!/usr/bin/env python

import os
import sys

src = os.path.join(os.path.dirname(__file__), 'src')
sys.path.insert(0, src)

from robotide import main

try:
    main(sys.argv[1:])
except KeyboardInterrupt:
    pass

@@ -42,52 +42,159 @@
 ys%0A%0A
-src = os.path.join(os.path.dirname(__file__)
+ROOT = os.path.dirname(__file__)%0Asrc = os.path.join(ROOT, 'src')%0Asys.path.insert(0, src)%0Abundled_robot = os.path.join(ROOT, 'bundled', 'robotframework'
 , 's
@@ -217,19 +217,29 @@
 sert(0, 
-src
+bundled_robot
 )%0A%0Afrom 

use the robotframework from bundled directory when running with rundevel.py