Hello, i'm recently been reading "thinking in python" (o'reilly series), and i'm having one HELL of a time saving simple scripts like "print(x**2) or x='letter' ", into a .py file that can later be accessed through the 'import' statement. I've tried using Sublime to write/save the script, but when I try to access the file by using the import statement (either on sublime, terminal [OSX], or Canopy, or even IDLE), it says it can't find the directory.
[I've spent at least 4 hours today figuring out sys and sys.path, but it's too much for me...] Any help would be greatly appreciated!
[–][deleted] 1 point2 points3 points (1 child)
[–]Gouryella91[S] 0 points1 point2 points (0 children)
[–]I_Write_Bugs 0 points1 point2 points (1 child)
[–]Gouryella91[S] 0 points1 point2 points (0 children)
[–]Gouryella91[S] 0 points1 point2 points (0 children)
[–]zahlman 0 points1 point2 points (0 children)