[asterisk-commits] mnicholson: branch mnicholson/asttest r247382 - /team/mnicholson/asttest/astt...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Feb 17 16:54:28 CST 2010


Author: mnicholson
Date: Wed Feb 17 16:54:25 2010
New Revision: 247382

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=247382
Log:
Added asterisk:path() function to convert absolute paths to paths relative to the given asterisk instance's work area

Modified:
    team/mnicholson/asttest/asttest/lua/astlib.lua

Modified: team/mnicholson/asttest/asttest/lua/astlib.lua
URL: http://svnview.digium.com/svn/asterisk/team/mnicholson/asttest/asttest/lua/astlib.lua?view=diff&rev=247382&r1=247381&r2=247382
==============================================================================
--- team/mnicholson/asttest/asttest/lua/astlib.lua (original)
+++ team/mnicholson/asttest/asttest/lua/astlib.lua Wed Feb 17 16:54:25 2010
@@ -34,6 +34,10 @@
 
 	setmetatable(a, self)
 	return a
+end
+
+function asterisk:path(path)
+	return self.work_area .. path
 end
 
 function asterisk:_spawn()




More information about the asterisk-commits mailing list