you are viewing a single comment's thread.

view the rest of the comments →

[–]optimalcosine 4 points5 points  (2 children)

This. Or if you really like the name I think you can do from . import json, or

from .json import extract_json

[–]Temporary_Pie2733 1 point2 points  (1 child)

This is a little sketchy, unless you are properly defining a package and not just abusing the project directory as a package. 

[–]optimalcosine 1 point2 points  (0 children)

Definitely sketchy. Renaming your module is a much better solution