On 2012-02-29, Ali Gholami Rudi wrote:
> "Oleksandr Gavenko (aka gavenkoa)" <gaven
...@gmail.com> wrote:
>> Originally i ask this question at:
>> http://permalink.gmane.org/gmane.emacs.help/83894
>> When all my code stay in single file - all ok. But when come time to
>> split
>> code to several files I get error:
>> ValueError: Attempted relative import in non-package
> This does not seem to be a ropemacs error. As the error says, you are
> doing a relative import outside a package; probably a script (python
> xyz.py) or the interactive python prompt.
Ok, I agree that this is not rope problem... I type C-c C-c and get error in
*Python* buffer:
>>> Traceback (most recent call last):
File "/tmp/py4140IWr", line 5, in <module>
from .blogger import *
ValueError: Attempted relative import in non-package
But among other question have some that relative to ropemacs...
I have such project structure:
<root>/blog4y-cli
<root>/blog4y/blog4y.py
<root>/blog4y/blogger.py
<root>/blog4y/wordpress.py
and blog4y.py must import blogger.py and wordpress.py.
Emacs create <root>/blog4y/.ropeproject/config.py and
<root>/blog4y/.ropeproject/objectdb files.
Is that right path for .ropeproject?
How to tell to ropemacs that under <root>/blog4y/ live 'blog4y' package with 3
modules inside?
Another question is how to tell to ropemacs to reload file that I edit?
"M-x revert-buffer" or ropemacs automatically detect buffer saving?
--
Best regards!