Open MikeHart85 opened 7 years ago
I mostly agree with this...after having written a few "external devices" this has become quite inconvenient.
The only part I am not so sure about is whether it's possible to import stuff in the absence of an __init__.py
. I guess a good start would be to cut out the -k
option (easy to remain backwards compatible - could just be appended to whatever else we decide to call the "new" option).
This came up while reviewing #259.
Currently, Lewis requires this sort of layout for a custom device directory:
From an internal implementation perspective, I understand why this is the case. But from a user's perspective, this is all very counter-intuitive, strange and inconvenient... because a user will be looking at it this way:
I think a cleaner syntax would be something like:
Or maybe we could even integrate path detection with the device name parameter (If a
/
or\
is present, treatdevice_name
as apath/to/device_name
):