4 comments

Hello erikb,

Could you please describe the structure of your project in more detail?

I am trying to import files from sibling packages, but PyCharm does

not seem to recognize them?

I have tried the techniques on this page to no avail:

http://docs.python.org/tutorial/modules.html#intra-package-references

My code compiles :-), so I think I am doing everything right.  Maybe

there is a setting I have missed?

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

MyProject

MyOtherDirectory

MyCode

MyPackage

MyOtherPackage

I had created a new PyCharm instance from the "MyProject" directory (attempt 1)

Just now, I tried creating a new PyCharm activity from the "MyCode" directory (attempt 2) and the sibling directories were able to find each other.  Yahoo!

However, I need to regularly reference files in "MyProject" ...  How can I specify in "attempt 1" that "MyCode" is the top level directory as far as Python is concerned?

...

Also, where can I learn more about the reason for PyCharm versus the intellij Python plugin?  In addition, I am curious about pricing, etc. if I am an existing customer using IntelliJ.

Thank you!

0

Back in IntelliJ, I would do this:

Project Structure / Modules

From there I set "sources" to the top code directory.

(and this is now working in IDEA with the python plugin...  but if it has never worked there, I would not have found out about pyCharmer!)

0

Hello erikb,

MyProject

MyOtherDirectory

MyCode

MyPackage

MyOtherPackage

I had created a new PyCharm instance from the "MyProject" directory

(attempt 1)

Just now, I tried creating a new PyCharm activity from the "MyCode"

directory (attempt 2) and the sibling directories were able to find

each other.  Yahoo!

However, I need to regularly reference files in "MyProject" ...  How

can I specify in "attempt 1" that "MyCode" is the top level directory

as far as Python is concerned?

Go to Settings | Project Structure and mark "MyCode" as a source root.

Also, where can I learn more about the reason for PyCharm versus the

intellij Python plugin? 

PyCharm is a dedicated IDE for Python and Django with a greatly simplified

project configuration UI (and much greater capabilities at detecting the

project configuration automatically). It's designed for pure Python projects,

whereas IntelliJ IDEA is best for mixed language projects (polyglot development).

In addition, I am curious about pricing, etc. if I am an existing customer

using IntelliJ.

PyCharm is a separate product, and at the moment we don't offer any discounts

for existing customers of other JetBrains products. However, the pricing

is still very much affordable: http://www.jetbrains.com/pycharm/buy/

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

Please sign in to leave a comment.