"include" plugin: default directory setting

"include" plugin: default directory setting - Messages

#1 Posted: 4/4/2016 1:19:58 AM
Mike Kaganski

Mike Kaganski

184 likes in 434 posts.

Group: User

When using include plugin, it's sometimes inconvenient to use full paths, esp. when working on different setups. E.g., at work, I would like to have a network share with library files, which are included in a number of working files. At home, I would like to copy the whole library someplace at my PC, and continue to work with my workfiles.

Currently, I only can do it introducing some string path variable and setting it at each place. The proposal is to add a setting for include plugin, so that it's possible to setup a "library" (default location) path, and in case of relative paths in include(), look there.

Btw, is there in SMath an interface to add to settings dialog, or to Tools menu?
С уважением, Михаил Каганский
#2 Posted: 4/4/2016 2:00:57 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

You can use relative paths but for the "\extensions\" directory only for now. You can download Linq.sm example from the gallery and use it with the command:

include("examples\Linq.sm" )=

I can change this behavior.
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Mike Kaganski 4/4/2016 2:18:00 AM
#3 Posted: 4/4/2016 2:19:45 AM
Mike Kaganski

Mike Kaganski

184 likes in 434 posts.

Group: User

Oh, yes, you see, it's not convenient with \extensions\ as it is now. It wouldn't be great for any fixed directory, either, that's why I ask for customizable (at program level) directory, if possible.

Thank you!
С уважением, Михаил Каганский
#4 Posted: 4/4/2016 3:11:11 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Wrote

Btw, is there in SMath an interface to add to settings dialog, or to Tools menu?


Nope, but it is possible to support the request of such feature here: (SS-70)
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
  • New Posts New Posts
  • No New Posts No New Posts