Right now, all the files are being imported directly off of the sys path. This involves adding the bin/ directory to the sys path before importing things.
Python has a module system that lets you group Python modules into a namespace.
A better way to structure snappy is to move the snappy code files into a snappy/ directory, add a __init__.py file to that directory (it can be empty--that's fine) and then you can import files using lines like:
Right now, all the files are being imported directly off of the sys path. This involves adding the
bin/
directory to the sys path before importing things.Python has a module system that lets you group Python modules into a namespace.
A better way to structure snappy is to move the snappy code files into a
snappy/
directory, add a__init__.py
file to that directory (it can be empty--that's fine) and then you can import files using lines like: