import my_func

my_func.print_hello()

# This worked in all 3 places: script directory, subdirectory "someRandomSubdir", and "site-packages"

import my_func

my_func.print_hello()

# This worked in all 3 places: script directory, subdirectory "someRandomSubdir", and "site-packages"

# This worked in all 3 places: script directory, subdirectory "someRandomSubdir", and "site-packages"