Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
saving my *.py files
#3
(Jun-20-2017, 10:25 AM)tozqo Wrote: be able to import them to the module I am working on?

Do you want to import these files permanently for all kind of future projects? Or is your project just split into multiple files, that you want to combine for your module now?

While metulburr answered the first case, in the second case you can also just easily put your files in the same folder as the new file you execute, or in a sub-folder for easier access as a package like this: from sub_folder import module or even from sub_folder.module import my_function

See here for more details: https://docs.python.org/3.3/tutorial/mod...l#packages

You are definitely not expected to save all your *.py files to the python install folder, no Shocked
Reply


Messages In This Thread
saving my *.py files - by tozqo - Jun-20-2017, 10:25 AM
RE: saving my *.py files - by snippsat - Jun-20-2017, 11:37 AM
RE: saving my *.py files - by Kebap - Jun-21-2017, 07:01 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  extract zip from .msg files and saving according to date stamp of email natjo 3 3,129 Aug-13-2020, 09:35 PM
Last Post: bowlofred
  Saving Files Kristenl2784 3 2,137 Jul-13-2020, 04:36 PM
Last Post: bowlofred
  Downloading And Saving Zip Files To A Particular Path Folder eddywinch82 2 2,686 Jan-06-2020, 07:56 PM
Last Post: eddywinch82
  Python 3.6.5 - Saving files Mradr 1 2,980 Jul-22-2018, 12:21 AM
Last Post: Larz60+
  openpyxl and saving xlsm files Patrick 2 19,790 Mar-15-2018, 06:15 PM
Last Post: Patrick
  reading .xls files and saving as .xlsx jon0852 1 6,997 Oct-17-2017, 08:32 PM
Last Post: buran
  openpyxl saving files issue Pedroski55 1 6,875 Sep-16-2017, 02:05 AM
Last Post: Pedroski55

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020