LISE-B26 / pylabcontrol

pylabcontrol: Laboratory Equipment Control for Scientific Experiments.
GNU General Public License v3.0
9 stars 9 forks source link

Script loading can fail if pylabcontrol is within another package #157

Open akabcenell opened 5 years ago

akabcenell commented 5 years ago

Currently, our code relies on the package (ex. pylabcontrol) being the top level package, that is the highest level folder that contains an init file. However, if pylabcontrol is installed in site-packages, there can sometimes be an init file in that folder, which causes issues in the code. We should instead change the package determination code to use a sentinel file that we put in the directory to denote a pylabcontrol package. This will also let us identify available toolboxes on a machine, and could be used to store configuration information.