critter-and-guitari-etc-programs icon indicating copy to clipboard operation
critter-and-guitari-etc-programs copied to clipboard

Using etc-test.py for local development without ETC

Open mansj opened this issue 6 years ago • 0 comments

Hi there, thanks for your great tutorial! I'm getting started with the ETC, and since I can't always have my ETC with me and hooked up, it would be great to be able to develop modes on my macbook locally, which I can do using your etc-test.py.

I'm running into a problem with importing modes from subdirectories, do you know why?

$ python3 etc-test.py T\ -\ Basic\ Image/main.py Traceback (most recent call last): File "etc-test.py", line 17, in i = importlib.import_module(args.module.split('.py')[0]) File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 994, in _gcd_import File "", line 971, in _find_and_load File "", line 953, in _find_and_load_unlocked

ModuleNotFoundError: No module named 'T - Basic Image/main'

mansj avatar Jul 13 '18 09:07 mansj