Code Monkey home page Code Monkey logo

Comments (4)

heuermh avatar heuermh commented on May 12, 2024

Thanks for the suggestion, @01010101!

When I run stuff with LiCK I'm running from the lick source directory and

$ chuck --loop &

in one terminal window and

$ chuck + import.ck
$ chuck + examples/foo.ck

in another. What is your use case, and how might this help?

from lick.

01010101 avatar 01010101 commented on May 12, 2024

Hi.
I also run chuck this way (tmux or screen window) but was thinking it would be useful to have some kind of utils or libs (incl. lick) in an external folder.
This way I can refer to some of them from any working directory so I don't have to copy/duplicate those files nor have everything I'm working on at the same place, or even navigate directories.
It just seemed more natural to me to do imports this way.

But, indeed, I can do the opposite and run chuck from that lib/utils folder, then manage paths within my ck files.

from lick.

heuermh avatar heuermh commented on May 12, 2024

Thanks, let's talk that through. You have

lick/import.ck
lick/lick/...
working/foo.ck

and you'd like to do

$ pwd
working

$ chuck --loop &
$ chuck + foo.ck

foo.ck:

Machine.add("../lick/import.ck");
<<<"ok">>>;

or perhaps

$ chuck --loop &
$ chuck + ../lick/import.ck foo.ck

?

from lick.

01010101 avatar 01010101 commented on May 12, 2024

Yeah, that's the idea

from lick.

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.