Closed (fixed)
Project:
Drush
Component:
Interoperability
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
21 Feb 2010 at 22:36 UTC
Updated:
3 Jan 2014 at 01:08 UTC
Jump to comment: Most recent, Most recent file
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 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 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 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 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 commentedExcellent. Committed. Thanks.