Option for pycharm to ignore a folder within a project?

Hi i am currently working on a python package, that deals with a lot of code generation. Code is automatically generated into a sub folder within the package. Anyways, anytime i synchronize my project, or restart pycharm. It sits for around 20 odd minutes to rebuild indicies etc. This is because i am working on generating python wrappers from our in house com libraries using a forked comtypes, so it generates alot of python files, and several directory levels deep of files, (~42,000 files, each class for time being is being pushed to its own py fie). The thing is however, i do not want pycharm to look at or really attempt to build intellisense or anything for this folder. Is there anyway to mark the folder as ignorable by pycharm?

My Project "Bar" basially looks like this:

Foo\

     -> doc

     -> test

     -> <etc...>

     -> Bar (package)

          -> Sub Packages

          -> Gen (generated code goes here)

               -> <lots of sub packages> + python files (this continues for a bit)

Basically i just am wondering if its possible to make pycharm ignore my "Gen" folder?

0
1 comment

Hello Frank,

Sure, it's possible. Go to Settings | Project Structure and mark the folder

as excluded.

Hi i am currently working on a python package, that deals with a lot

of code generation. Code is automatically generated into a sub folder

within the package. Anyways, anytime i synchronize my project, or

restart pycharm. It sits for around 20 odd minutes to rebuild indicies

etc. This is because i am working on generating python wrappers from

our in house com libraries using a forked comtypes, so it generates

alot of python files, and several directory levels deep of files,

(~42,000 files, each class for time being is being pushed to its own

py fie). The thing is however, i do not want pycharm to look at or

really attempt to build intellisense or anything for this folder. Is

there anyway to mark the folder as ignorable by pycharm?

My Project "Bar" basially looks like this:

Foo\

-> doc

-> test

-> <etc...>

-> Bar (package)

-> Sub Packages

-> Gen (generated code goes here)

-> <lots of sub packages> + python files (this

continues for a bit)

Basically i just am wondering if its possible to make pycharm ignore

my "Gen" folder?

---

Original message URL:

http://www.jetbrains.net/devnet/message/5262824#5262824

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

Please sign in to leave a comment.