Python Forum
How to include one script into another?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to include one script into another?
#7
A stab in the dark without more info, but: If they are not too big and complicated, why not try defining the 3 scripts as functions in 1 Python file?


import everything needed
 
paths = .....
var = ....
 
def one():
    ....
 
def two():
    ...
 
def three():
    ...
 
if __name__ == "__main__":
    # do things
Reply


Messages In This Thread
RE: How to include one script into another? - by Pedroski55 - Mar-21-2024, 06:57 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how include a python code in notpad++ plugin akbarza 2 684 Sep-25-2023, 08:25 PM
Last Post: deanhystad
  Regex Include and Exclude patterns in Same Expression starzar 2 847 May-23-2023, 09:12 AM
Last Post: Gribouillis
  How to include input as part of variable name Mark17 4 2,565 Oct-01-2021, 06:45 PM
Last Post: Mark17
  Can I include text using artist? tetrisbot 0 1,458 Aug-13-2020, 08:13 PM
Last Post: tetrisbot
  How to include pandas with pyinstaller Rickus 1 10,781 Feb-19-2020, 08:01 PM
Last Post: snippsat
  How to include Variable in File Path penahuse 3 7,358 Jan-05-2020, 03:08 AM
Last Post: ichabod801
  Cannot open include file: 'ft2build.h' thracian 0 4,859 Nov-11-2019, 09:08 PM
Last Post: thracian
  I need a query to select the numbers that include 2 digits of 3 omidvakili 1 1,668 Sep-20-2019, 03:49 PM
Last Post: Yoriz
  Trying to include an If statement in my While Loop junkankit 3 2,991 Jan-31-2019, 10:06 AM
Last Post: buran
  create dictionary from **kwargs that include tuple bluefrog 2 4,919 Oct-26-2016, 10:24 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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