Expand ~ in the glob path of 'glob curves to playlist'.
authorW. Trevor King <wking@drexel.edu>
Fri, 11 Nov 2011 11:51:47 +0000 (06:51 -0500)
committerW. Trevor King <wking@drexel.edu>
Fri, 11 Nov 2011 11:51:47 +0000 (06:51 -0500)
hooke/plugin/playlist.py

index b5a2f2a8bb2f6ed048837a6ffdf0d9e0af981b72..88608d6ea8fc6f5fba2bb9c35d97541f545987d5 100644 (file)
@@ -322,7 +322,7 @@ Additional information for the input :class:`hooke.curve.Curve`.
 
     def _run(self, hooke, inqueue, outqueue, params):
         p = self._playlist(hooke, params)
 
     def _run(self, hooke, inqueue, outqueue, params):
         p = self._playlist(hooke, params)
-        for path in sorted(glob.glob(params['input'])):
+        for path in sorted(glob.glob(os.path.expanduser(params['input']))):
             try:
                 p.append_curve_by_path(path, params['info'], hooke=hooke)
             except NotRecognized, e:
             try:
                 p.append_curve_by_path(path, params['info'], hooke=hooke)
             except NotRecognized, e: