Jump to content

larabrian

Members
  • Content count

    2
  • Donations

    0.00 CAD 
  • Joined

  • Last visited

Community Reputation

0 Neutral

About larabrian

  • Rank
    Peon

Personal Information

  • Name
    laral brian
  • Location
    UAE
  1. Setting python include path to external pyd library

    The better (and more permanent) way to solve this is to set your PYTHONPATH, which provides the interpreter with additional directories look in for python packages/modules.
  2. Assign global variables with python

    You can use a global variable in other functions by declaring it as global in each function that assigns to it. Python assumes that any name that is assigned to, anywhere within a function, is local to that function unless explicitly told otherwise. If it is only reading from a name, and the name doesn't exist locally, it will try to look up the name in any containing scopes (e.g. the module's global scope).
×