Date: Nov 2, 2012 7:07 AM Author: Kaba Subject: Package of the current m-file Hi,
Is it possible to find out the containing package of the
currently-running m-file? I want to do something like this:
+MyPackage
==========
f.m
---
function f()
import(current_package());
g()
g.m
---
function g()
disp('It works!');
--
http://kaba.hilvi.org