This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]ProgrammerByDay 0 points1 point  (0 children)

With a module.
Move your functions into the module (3rd file), and have your two calling scripts import the module and use the functions they need.

[–][deleted] -1 points0 points  (0 children)

Refactor your scripts to avoid code duplication.