sunjerry019 / nanosquared

Open Source M-Squared Measurement Automation using Dataray WinCamD and Ophir NanoScan. WinCamD and NanoScan code may be used independently
GNU General Public License v3.0
6 stars 1 forks source link

Fix a bug where Server32 tries to import numpy #43

Closed sunjerry019 closed 2 years ago

sunjerry019 commented 2 years ago

There is a bug where the 32-bit version of the script tries to import nanoscan, which depends on scipy and numpy

The fix is done by only making the __init__.py load if it is running in a non-32-bit environment.

Further improvements added: Only add path to sys.path if it doesn't already exist.

sunjerry019 commented 2 years ago

looks good to me