Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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]
Comment | File | Size | Author |
---|---|---|---|
#4 | 721240-1.patch | 2.55 KB | sutch |
#2 | 721240.patch | 997 bytes | sutch |
Comments
Comment #1
wingflap CreditAttribution: wingflap commentedDid 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.
Comment #2
sutch CreditAttribution: sutch commentedThis 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.
Comment #3
moshe weitzman CreditAttribution: moshe weitzman commentedThanks. Can we make a function for drush_server_home() and call it from all these places. It should handle windows and non windows internally.
Comment #4
sutch CreditAttribution: sutch commentedAttached patch implements and uses drush_server_home() to obtain the user's home directory on Unix- and Windows-based systems.
Comment #5
moshe weitzman CreditAttribution: moshe weitzman commentedExcellent. Committed. Thanks.