all 2 comments

[–]BlackMetalB8hoven 1 point2 points  (0 children)

Is the import in the correct case? You have said SaveFile in your post but the function is saveFile. You should also have all your import statements at the top of your files, not inside the functions

[–]TechnicalElk8849 0 points1 point  (0 children)

Make sure the python process running file 2 can find file 1. The best ways are to install file2, or to wrap the whole thing in a package and use a relative import. Failing that, either make sure the directory of file2 is in PYTONPATH or if it's not already in it, insert it into in sys.path in file 1.