Getting absolute path for WebDev mounted folder

Is there any way to get the absolute path for a WebDev mounted folder through scripting? We have different paths between dev and production so we have to manually update when deploying. It would be nice to be able to get the absolute path for a mounted folder through scripting so that the paths can remain dynamic.

Not really; the actual path encoded in the resource is relative. In theory you could (on the gateway) run a script that finds the actual Webdev resource, decodes the resource JSON, then gives you that partial path, which you could convert to an absolute path. It’d be non-trivial to do, though.