Drush is unable to find the .drush folder in the user's home directory on Windows 7 machines.

After installing Drush_make in my .drush folder, Drush should find the new commands. Instead I see:

C:\wamp\apps\test> drush make
A Drupal installation directory could not be found                       [error]
The command 'C:\drush\drush.php make' could not be found.                [error]
CommentFileSizeAuthor
#4 721240-1.patch2.55 KBsutch
#2 721240.patch997 bytessutch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

wingflap’s picture

Did you look at this:

http://drupal.org/node/330023

You need to follow the steps carefully to ensure that your paths (environment variables in Windows) as well as the specific path to php within the Drush batch file are correct and recognized when you kick off Drush.

I had similar problems. I am not running the Alpha version (like you are) but the error message is symptomatic of exactly what I was running into.

sutch’s picture

Version: All-versions-3.0-alpha1 »
Assigned: Unassigned » sutch
Status: Active » Needs review
FileSize
997 bytes

This issue is similar to an issue solved by an earlier patch that updated Drush to obtain the user's HOME folder on Windows systems (http://drupal.org/node/455590).

The attached patch "borrows" the code from this earlier patch and applies it to Drush's function for locating the user's .drush folder.

moshe weitzman’s picture

Status: Needs review » Needs work

Thanks. Can we make a function for drush_server_home() and call it from all these places. It should handle windows and non windows internally.

sutch’s picture

Status: Needs work » Needs review
Issue tags: +Windows, +home
FileSize
2.55 KB

Attached patch implements and uses drush_server_home() to obtain the user's home directory on Unix- and Windows-based systems.

moshe weitzman’s picture

Status: Needs review » Fixed

Excellent. Committed. Thanks.

Status: Fixed » Closed (fixed)
Issue tags: -Windows, -home

Automatically closed -- issue fixed for 2 weeks with no activity.