Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Solved
    • Unsolved
    • Search
    1. Home
    2. nadobnikm
    3. Posts
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by nadobnikm

    • Local modules don’t update

      Hi Drawbot team,

      I have recently started with DrawBot and came across a problem with importing local modules. I am trying to reuse some code within different DB scripts (without making it a PyPI package). Here is my file structure:

      myProject
      -__init.py__
      -main.py
      -DBlib
      --__init.py__
      --utils.py

      Here is the top of myProject/main.py:

      from DBlib.utils import *
      

      This works, however when running myProject/main.py DrawBot app does not seem to detect changes in myProject/DBlib/utils.py until I restart the app and re-run myProject/main.py. Is there something I am doing wrong with importing my local module?

      Thanks!
      Maciej

      posted in Bugs
      nadobnikm
      nadobnikm