@@ -354,7 +354,7 @@ Turn on the rope script *'g:pymode_rope'*
354354.ropeproject Folder ~
355355 *.ropeproject*
356356
357- *:PymodeRopeNewProject* -- Open new Rope project in current working directory
357+ *:PymodeRopeNewProject* [ <path> ] -- Open new Rope project in the given path
358358*:PymodeRopeRegenerate* -- Regenerate the project cache
359359
360360Rope uses a folder inside projects for holding project configuration and data.
@@ -371,8 +371,9 @@ Currently it is used for things such as:
371371* It can be used to save information about object inferences.
372372* It can be used to save a global name cache, which is used for auto-import.
373373
374- If `.ropeproject` is not found in the current directory, rope will look
375- recursively for it in parent folders.
374+ By default, if `.ropeproject` is not found in the current directory, rope will
375+ look recursively for it in parent folders.
376+
376377Warning: If rope finds `.ropeproject` in a parent dir, it will use it with
377378all its child directories, which may slow scanning down (because of many,
378379possibly unrelated, files)
@@ -382,6 +383,23 @@ Enable searching for |.ropeproject| in parent directories
382383>
383384 let g:pymode_rope_lookup_project = 1
384385
386+ You can also manually set the rope project directory. If not specified rope will
387+ use the current directory.
388+ *'g:pymode_rope_project_root'*
389+ >
390+ let g:pymode_rope_project_root = ""
391+
392+
393+ The location of the `.ropeproject` folder may also be overridden if you wish to
394+ keep it outside of your project root. The rope library treats this folder as a
395+ project resource, so the path will always be relative to your proejct root (a
396+ leading '/' will be ignored). You may use `' ..' ` path segments to place the
397+ folder outside of your project root.
398+ *'g:pymode_rope_ropefolder'*
399+ >
400+ let g:pymode_rope_ropefolder='.ropeproject'
401+
402+
385403
386404Show documentation for element under cursor ~
387405
@@ -646,6 +664,10 @@ Solutions:
646664- Set | 'g:pymode_rope_lookup_project' | to 0 for prevent searching in parent
647665 dirs.
648666
667+ You may also set | 'g:pymode_rope_project_root' | to manually specify the project
668+ root path.
669+
670+
649671
650672Pylint check is very slow
651673-------------------------
0 commit comments