runscript command returns error ValueError: Empty module name if you specify path to script
Error.
File "<frozen importlib._bootstrap>", line 1203, in _gcd_import
File "<frozen importlib._bootstrap>", line 1116, in _sanity_check
ValueError: Empty module name
this was caused by executing the command as such python .\manage.py runscript .\Scripts\setup <-causes error->
by removing the full path the error went away python .\manage.py runscript setup
for the above to work you must have your script ( i.e. setup.py ) located in a scripts\ subdirectory from the project base dir project | \scripts\setup.py | manage.py
devs please note. This is my first time using django-extensions but I did not see any documentation that stated I could not specify the path on readthedocs.org. I thought I would document this issue here in case anyone else has this problem. Feel free to tag as won't fix and leave this for reference.
Source: django-extensions/django-extensions