File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed
Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11Changelog
22=========
33
4+ * Pylama updated to version 3.3.2
45 * Get fold's expression symbol from &fillchars;
56 * Fixed error when setting g:pymode_breakpoint_cmd (expobrain);
67 * Fixed code running;
78 * Ability to override rope project root and .ropeproject folder
89 * Added path argument to `PymodeRopeNewProject ` which skips prompt
9-
10+ * Disable ` pymode_rope_lookup_project ` by default
1011 * Options added:
1112 'pymode_rope_project_root', 'pymode_rope_ropefolder'
1213
Original file line number Diff line number Diff line change @@ -381,7 +381,7 @@ possibly unrelated, files)
381381Enable searching for | .ropeproject | in parent directories
382382 *'g:pymode_rope_lookup_project'*
383383>
384- let g:pymode_rope_lookup_project = 1
384+ let g:pymode_rope_lookup_project = 0
385385
386386 You can also manually set the rope project directory. If not specified rope will
387387use the current directory.
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ call pymode#default('g:pymode_rope_project_root', '')
158158call pymode#default (' g:pymode_rope_ropefolder' , ' .ropeproject' )
159159
160160" If project hasnt been finded in current working directory, look at parents directory
161- call pymode#default (' g:pymode_rope_lookup_project' , 1 )
161+ call pymode#default (' g:pymode_rope_lookup_project' , 0 )
162162
163163" Enable Rope completion
164164call pymode#default (' g:pymode_rope_completion' , 1 )
Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ def get_ctx(*args, **kwargs):
293293 return resources .get (path )
294294
295295 project_path = env .var ('g:pymode_rope_project_root' )
296- if project_path :
296+ if not project_path :
297297 project_path = env .curdir
298298 env .debug ('Look ctx' , project_path )
299299 if env .var ('g:pymode_rope_lookup_project' , True ):
@@ -302,10 +302,13 @@ def get_ctx(*args, **kwargs):
302302 if not os .path .exists (project_path ):
303303 env .error ("Rope project root not exist: %s" % project_path )
304304 ctx = None
305+
305306 else :
306307 ctx = projects .get (project_path )
308+
307309 if not ctx :
308310 projects [project_path ] = ctx = cls (path , project_path )
311+
309312 resources [path ] = ctx
310313 return ctx
311314 return get_ctx
You can’t perform that action at this time.
0 commit comments