GithubHelp home page GithubHelp logo

Comments (4)

ralphbean avatar ralphbean commented on September 24, 2024

Hm, since taskw is a library.. I'm not sure it should be responsible for checking environment variables. Should taskwarrior-time-tracking-hook do this instead and pass the value to taskw? @kostajh, do you have an opinion on this?

from taskw.

coddingtonbear avatar coddingtonbear commented on September 24, 2024

Hrm -- I hadn't realized that that environment variable could be used to
point at one's Taskrc file. Given that we already automatically calculate
where one's Taskrc file is in taskw, though, I think it might make the most
sense to do this calculation in taskw. Even better: if it's possible for
us to ask taskwarrior where it will be reading its config from, we could
use that path?

On Tue, Feb 24, 2015 at 12:19 PM, Ralph Bean [email protected]
wrote:

Hm, since taskw is a library.. I'm not sure it should be responsible for
checking environment variables. Should taskwarrior-time-tracking-hook do
this instead and pass the value to taskw? @kostajh
https://github.com/kostajh, do you have an opinion on this?


Reply to this email directly or view it on GitHub
#94 (comment).

from taskw.

khaeru avatar khaeru commented on September 24, 2024

This could be as simple as replacing "~/.taskrc" with os.getenv('TASKRC', '~/.taskrc'). Since the former appears in multiple places, perhaps set a global variable near the top of warrior.py:

TASKRC = os.getenv('TASKRC', '~/.taskrc')

…if that's consistent with your coding style.

from taskw.

ralphbean avatar ralphbean commented on September 24, 2024

Sure. Want to submit the pull-request @khaeru?

from taskw.

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.