Tnx
On Tuesday, September 27, 2016 at 10:58:47 PM UTC+3, Yichao Yu wrote:
>
> On Tue, Sep 27, 2016 at 3:56 PM, Tsur Herman > wrote:
> > is there a way to know in run-time from which file the code that is
> > currently executing comes from?
>
> @__FILE__ gives you the
is there a way to know in run-time from which file the code that is
currently executing comes from?
On Tue, Sep 27, 2016 at 3:56 PM, Tsur Herman wrote:
> is there a way to know in run-time from which file the code that is
> currently executing comes from?
@__FILE__ gives you the current file name
Base.source_path() gives you the current toplevel file.
>