diff --git a/pydev_run_in_console.py b/pydev_run_in_console.py
index <HASH>..<HASH> 100644
--- a/pydev_run_in_console.py
+++ b/pydev_run_in_console.py
@@ -23,6 +23,7 @@ def run_file(file, globals=None, locals=None):
     if locals is None:
         locals = globals
 
+    sys.path.insert(0, os.path.split(file)[0])
 
     print('Running %s'%file)
     pydev_imports.execfile(file, globals, locals)  # execute the script
Add script to python path when running in console (PY-<I>).

(cherry picked from commit 9ac<I>ae<I>d<I>e1e<I>f3c9f<I>faa0eb<I>e<I>cdb)