This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Бобёр Сатанист
Recipients Бобёр Сатанист
Date 2017-09-08.20:37:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1504903021.15.0.510945399376.issue31397@psf.upfronthosting.co.za>
In-reply-to
Content
How to import modules/files in Python 3.6.2? I started to study python, in the section about importing modules, here is an example: I created a text file with the text "print('Hello module world!')" and saved it with the name "module1.py". I put the file in a folder with a python. As stated in the book, simply entering 
"import module1" python imports the contents of the file, wherever it is on the computer, or it can be executed with the command "python module1".

In short, the method does not work on version 3.6.2,when i tried to import file, python did not find the file, neither through calling the Python interpreter from the command line, nor through IDLE. Error module not found error, and with the command 
"python  module1" - syntax error.

PATH on my computer is configured.Windows 10 ver.1703 x64,Python 3.6.2 x64
History
Date User Action Args
2017-09-08 20:37:01Бобёр Сатанистsetrecipients: + Бобёр Сатанист
2017-09-08 20:37:01Бобёр Сатанистsetmessageid: <1504903021.15.0.510945399376.issue31397@psf.upfronthosting.co.za>
2017-09-08 20:37:01Бобёр Сатанистlinkissue31397 messages
2017-09-08 20:37:01Бобёр Сатанистcreate