0

I have written my own python code, organized in dirs and sub dirs hierarchy

I'm trying to use this code (package/module, I'm not sure about the terminology) in a few projects.

The issue is that the code path differes between the projects.

How can I import the whole dirs, subdirs and sub files hierarchy in each project?

Thanks in advance!

NI6
  • 2,477
  • 5
  • 17
  • 28

1 Answers1

0

try this with your code before the import statements

from sys import path
path += [<path>] # Here You specify the path of the library package
Strik3r
  • 1,052
  • 8
  • 15