Results 1 to 3 of 3

Thread: Module directory

  1. #1
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    54
    Posts
    8,636
    Blog Entries
    2
    Rep Power
    10

    Module directory

    When developing a module, it may happen to have many files related to that module.

    To keep things clean, you can create a new directory under thinBasic\Lib directory and name it with the same name of the module. During script runtime, thinBasic will search also in that directory.

    For example, if you module has thinBasic_TBGL name, create thinBasic_TBGL directory under thinBasic\Lib and keep all the files related to the module in that directory.

    So the following are all valid direcory modules and thinBasic, at script runtime, will search also in those directory to search for needed modules:

    thinBasic\Lib\thinBasic_TBGL
    thinBasic\Lib\thinBasic_RS232
    thinBasic\Lib\thinBasic_DBF
    ...

    See thinBasic online doc for USE keyword: http://www.thinbasic.com/public/prod.../html/uses.htm

    Regards
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | psch.thinbasic.com
    Win10Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,083
    Blog Entries
    5
    Rep Power
    725

    Module directory

    Good idea, thanks

    I will consider it for next releases

    Thanks,
    Psch
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  3. #3
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    54
    Posts
    8,636
    Blog Entries
    2
    Rep Power
    10

    Module directory

    For installation purpose, we can consider to to have 2 modules directories, thinBasic\Lib for official modules and thinBasic\Mod for user modules. So when you will release a module just tell your user to copy the module inside thinBasic\Mod directory.

    Also I will differentiate USE keyword into USE for official modules and MOD for user modules. While USE will search for modules name starting with "thinBasic_" inside thinBasic\Lib directory, MOD will search for exact name in thinBasic\Mod directory.

    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | psch.thinbasic.com
    Win10Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

Similar Threads

  1. Oxygen directory contains old examples
    By Petr Schreiber in forum Installation
    Replies: 1
    Last Post: 13-06-2010, 21:20
  2. Error for Make Directory
    By nrodes in forum File
    Replies: 3
    Last Post: 09-02-2009, 00:23
  3. Directory where to create bundled exe
    By ErosOlmi in forum thinBundle suggest new features
    Replies: 0
    Last Post: 21-02-2007, 00:43

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •