# How to open specific project ignoring switch\_project window?

**URL:** <https://forum.sublimetext.com/t/how-to-open-specific-project-ignoring-switch-project-window/14540>\
**Category:** Plugin Development\
**Created:** [February 17, 2015, 3:14pm UTC](https://forum.sublimetext.com/t/how-to-open-specific-project-ignoring-switch-project-window/14540 "2015-02-17T15:14:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Binocular222](https://forum.sublimetext.com/user_avatar/forum.sublimetext.com/binocular222/32/45859_2.png) [@Binocular222](https://forum.sublimetext.com/u/Binocular222)\
**Post date:** [February 17, 2015, 3:14pm UTC](https://forum.sublimetext.com/t/how-to-open-specific-project-ignoring-switch-project-window/14540/1 "2015-02-17T15:14:01Z")

</div>

Example:  
subprocess.Popen(‘subl.exe’, ‘Packages\User\Project\Autohotkey.sublime-project’])

This open in new window instead of switching current view.  
How to switch to that project in the same view?

---

<div class="post-metadata">

**Author:** ![huot25](https://forum.sublimetext.com/user_avatar/forum.sublimetext.com/huot25/32/45558_2.png) [@huot25](https://forum.sublimetext.com/u/huot25)\
**Post date:** [February 17, 2015, 4:07pm UTC](https://forum.sublimetext.com/t/how-to-open-specific-project-ignoring-switch-project-window/14540/2 "2015-02-17T16:07:56Z")

</div>

We ran into something similar with building projects for our plugin. Sublime will load a project in a new window if there is an active project or open files. I believe our solution was to close the active project and open files and then run the command to open sublime with the specific project.

```auto
window.run_command("close_project") # close the project
window.run_command("close_all") #close all active files
```

I hope this helps!

-Nick
