ninja-ide/ninja-ide — Issue #236: Error creating a new project (import from sources)
Author: aaloy
Created: 2012-02-03 08:34:15+00:00
State: open

To reproduce the error:

1. Create a new project
2. Choose import from sources
3. Select a folder where a python project already exists (not a nijna-ide project, just a python project)

The ide tries to create always an __init__.py altougth if I choose "import from sources options" is because I just want to get the files already have in the project. This is not the desired.

Error follows:

```python
(python:11613): Gdk-CRITICAL **: IA__gdk_window_get_origin: assertion `GDK_IS_WINDOW (window)' failed
Traceback (most recent call last):
File "/usr/share/ninja-ide/ninja_ide/gui/dialogs/wizard_new_project.py", line 102, in done
.on_wizard_finish(self)
File "/usr/share/ninja-ide/ninja_ide/gui/dialogs/wizard_new_project.py", line 161, in on_wizard_finish
file_manager.create_init_file(path)
File "/usr/share/ninja-ide/ninja_ide/core/file_manager.py", line 38, in create_init_file
raise NinjaFileExistsException(name)
ninja_ide.core.file_manager.NinjaFileExistsException: The file already exists.