Giter Club home page Giter Club logo

Comments (6)

prusse-martin avatar prusse-martin commented on May 24, 2024 1

My bad, you are right root is relative to the current devenv file.

Maybe we could deprecate the root variable naming and name it file_location (or devenv_file_location) since there is a request to support referencing devenv files from the web and use the alias is_top_level = not is_included to avoid root related terms.

from conda-devenv.

prusse-martin avatar prusse-martin commented on May 24, 2024

Yes.
Our brains have problems to process negatives.

leave_here...
The first thing that come to my mind is an is_root but I think it is much similar to root(anoter var already present).
@nicoddemus do you have any suggestion about a variable name?

As a temporary workaround you could add (maybe at the top) {% set leave_here = not is_included %} and then use leave_here as a variable normally.

from conda-devenv.

nicoddemus avatar nicoddemus commented on May 24, 2024

@nicoddemus do you have any suggestion about a variable name?

Not at the moment :/

from conda-devenv.

majidaldo avatar majidaldo commented on May 24, 2024

Yes.
Our brains have problems to process negatives.

leave_here...
The first thing that come to my mind is an is_root but I think it is much similar to root(anoter var already present).
@nicoddemus do you have any suggestion about a variable name?

As a temporary workaround you could add (maybe at the top) {% set leave_here = not is_included %} and then use leave_here as a variable normally.

Yes. I already do something like that #112 (comment)

from conda-devenv.

majidaldo avatar majidaldo commented on May 24, 2024

Well, root should be ~root_pth.

To use 'root' language, at_root, inclusion_root, at_inclusion_root? The user would have to understand the processing of the devenvs as a tree where each devenv is a 'root' for included devenvs (not saying it's a bad thing).

Yeah there are two 'tree' concepts to deal with: the filesystem and the inclusion tree.

from conda-devenv.

majidaldo avatar majidaldo commented on May 24, 2024

My bad, you are right root is relative to the current devenv file.

Maybe we could deprecate the root variable naming and name it file_location (or devenv_file_location) since there is a request to support referencing devenv files from the web and use the alias is_top_level = not is_included to avoid root related terms.

this_file_path, and this_file_dir.
and
is_base

?

from conda-devenv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.