Nov-27-2016, 01:19 AM
You can't import a path, instead you should make sure that your script is somewhere Python knows to find it. It's also a pitfall to name your script the name of an existing module; you can check for this by opening a Python shell and trying to import it before you've created it (e.g. in this case import test, which will work). Your version can "shadow" the built-in version, and if something else relied on it, that thing will be broken.
So: rename your file to something unique, and make sure your path is all good, and things should work as expected.
So: rename your file to something unique, and make sure your path is all good, and things should work as expected.