Aug-03-2018, 07:52 AM
Python projects that have complex codebase directory structures introduce a fairly common problem with imports within the project. While providing absolute paths is recommended, it is cumbersome, repetitive, and rather boilerplate. Absolute imports may also decrease application portability. pyosphere.sh mitigates these issues by simply providing a flattened execution environment, allowing all files to relatively import each other trivially, while allowing developers to maintain their choice of directory structure.
Note: This is just a hack to make things easy while importing. Use at own will.
I do hope people will like this since it does make importing files easy as well as running files from other directories as well.
It is completely open source and can be found at: https://github.com/vedantpuri/pyosphere
Feel free to check it out and leave behind a star if you like it !
Note: This is just a hack to make things easy while importing. Use at own will.
I do hope people will like this since it does make importing files easy as well as running files from other directories as well.
It is completely open source and can be found at: https://github.com/vedantpuri/pyosphere
Feel free to check it out and leave behind a star if you like it !