Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Solved
    • Unsolved
    1. Home
    2. Tags
    3. modules
    Log in to post

    • jansindl3r

      UNSOLVED How to share living instance?
      Extensions • scripting modules • • jansindl3r  

      4
      0
      Votes
      4
      Posts
      21
      Views

      frederik

      Dont get it why Gustavo's answer does not work... You initiate only once an instance from that class and import it back into other modules. A fourth easy solution is to add a variable to NSApp() import AppKit app = AppKit.NSApp() app._my_extenstion_name_controller = "foo" this will be accessible everywhere, but this is actually the same as Gustavo's answers, just stored somewhere else :)
    • ArrowType

      SOLVED How can I reload a Python module on the *first* attempt?
      General Questions • scripting modules • • ArrowType  

      3
      0
      Votes
      3
      Posts
      76
      Views

      ArrowType

      Ahhh, that makes sense now. That’s a good tip about __init.py__ as well. Thank you so much for your help, Gustavo!
    • MBurvill

      UNSOLVED Using numpy (and other modules) in robofont
      General Questions • python modules py3 • • MBurvill  

      3
      1
      Votes
      3
      Posts
      131
      Views

      frederik

      FYI: if you need to install a package for a specific python you can use pip3.6 install numpy
    • jesentanadi

      SOLVED Working with modules
      General Questions • scripting extensions modules • • jesentanadi  

      8
      0
      Votes
      8
      Posts
      772
      Views

      jesentanadi

      @gferreira Ah! Ok, thank you. Very helpful! :+1: