Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use __init__.py and absolute (path) import and restructure the project. #8

Open
K-Wu opened this issue Nov 1, 2020 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@K-Wu
Copy link
Collaborator

K-Wu commented Nov 1, 2020

Parent issue: #1

An empty init.py marks its directory as a module.

I propose the code to be restructured into

Readme.md

......
pylog/optimizer.py
pylog/pylog.py
tests/......
......

In pylog/pylog.py, optimizer.py can be now imported by absolute import statement

import pylog.optimizer

This enhancement much clarifies the import statements.

https://github.com/UCLA-VAST/soda is an example.

@K-Wu K-Wu added the enhancement New feature or request label Nov 1, 2020
@K-Wu K-Wu self-assigned this Nov 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant