Announcement

Collapse
No announcement yet.

is this global var ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • is this global var ?

    Code:
    Dialog.Message("Notice",  package.path);
    global or what ?

  • #2
    Originally posted by startup View Post
    Code:
    Dialog.Message("Notice", package.path);
    global or what ?
    Your question is somewhat unclear, what do you mean 'global or what'?

    package.path is the path where Lua will try to find modules you try to load with 'require'. - http://lua-users.org/wiki/PackagePath

    'package' is a global table and 'path' is a key in that table, so 'package.path' is accessible from any scope.
    Bas Groothedde
    Imagine Programming :: Blog

    AMS8 Plugins
    IMXLH Compiler

    Comment


    • #3
      Sorry for my english
      Thanks for information
      this is the result of the dialog in a new empty project


      Code:
      .\AutoPlay\Scripts\?;?;.\AutoPlay\Scripts\?.lua;?.lua;.\?.lua;C:\Documents and Settings\user\My Documents\AutoPlay Media Studio 8\Projects\test5\CD_Root\lua\?.lua;C:\Documents and Settings\user\My Documents\AutoPlay Media Studio 8\Projects\test5\CD_Root\lua\?\init.lua;C:\Documents and Settings\user\My Documents\AutoPlay Media Studio 8\Projects\test5\CD_Root\?.lua;C:\Documents and Settings\user\My Documents\AutoPlay Media Studio 8\Projects\test5\CD_Root\?\init.lua

      Comment


      • #4
        Originally posted by startup View Post
        Sorry for my english
        Thanks for information
        this is the result of the dialog in a new empty project


        Code:
        .\AutoPlay\Scripts\?;?;.\AutoPlay\Scripts\?.lua;?.lua;.\?.lua;C:\Documents and Settings\user\My Documents\AutoPlay Media Studio 8\Projects\test5\CD_Root\lua\?.lua;C:\Documents and Settings\user\My Documents\AutoPlay Media Studio 8\Projects\test5\CD_Root\lua\?\init.lua;C:\Documents and Settings\user\My Documents\AutoPlay Media Studio 8\Projects\test5\CD_Root\?.lua;C:\Documents and Settings\user\My Documents\AutoPlay Media Studio 8\Projects\test5\CD_Root\?\init.lua
        Yes I know, that is where Lua will look for modules
        Bas Groothedde
        Imagine Programming :: Blog

        AMS8 Plugins
        IMXLH Compiler

        Comment

        Working...
        X