Is there a way to get the import helper to place imports below a certain point in the file?

I have a particular import that should remain at the top because it alters the sys.path.  Hence if it's not at the top, other imports don't work.  Is there any special keyword I could put in the file that would cause the psuedo-automatic import feature to be placed below this spot?  For instance:

# needs to appear at the top:

from xyz import abc

# everything else needs to follow:

from zzz import z

from yyy import y

from xxx import x

I'd love it if I could have a keyword that follows that first one and makes sure that all other imports go below it.

0

Please sign in to leave a comment.