When I run drush.php I get an error: drupal_get_path is undefined at line 123.

Attached patch is what I changed to make it work.

CommentFileSizeAuthor
drush_drupal_get_path.patch698 bytesjohn morahan

Comments

Frando’s picture

Status: Needs review » Fixed

Fixed in HEAD, though in a little different way than in your patch. Thanks for reporting!
Missed that as somehow the symbolic link I used to invoke drush pointed to the wrong drush.php

Anonymous’s picture

Status: Fixed » Closed (fixed)
moshe weitzman’s picture

seems like we should do a new release soon to get this out, no?

mikedotexe’s picture

Component: Code » Base system (internal API)
Issue summary: View changes

This still seems to be a problem with Drupal 7.39

Easy way around it is to just use the code inside that function, until this patch is committed.

Instead of:
$path = drupal_get_path('module', 'mikedotexe');

We just:
$path = dirname(drupal_get_filename('module', 'mikedotexe'));