Skip to content

add devcontainer file and define path for utils.py#76

Open
wangzhao0217 wants to merge 3 commits into
a-b-street:mainfrom
wangzhao0217:75-updates
Open

add devcontainer file and define path for utils.py#76
wangzhao0217 wants to merge 3 commits into
a-b-street:mainfrom
wangzhao0217:75-updates

Conversation

@wangzhao0217

Copy link
Copy Markdown

No description provided.

@Robinlovelace Robinlovelace left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Cc @dabreegster

Comment thread .devcontainer/postCreateCommand.sh Outdated
# Ensure cargo command is available
command -v cargo

# Install odjitter using cargo

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we doing anything with odjitter at all?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably from a different container definition that was copied-across.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have removed it from postCreateCommand.sh


from utils import *
# Add the parent directory to the system path
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be symlinks for all the examples to make utils.py work. Is it not working in the devcontainer for some reason?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ye, this "../utils.py" not working in the devcontainer

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a comment explaining this

@dabreegster dabreegster left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed some changes, please confirm they're all fine, and then I'll merge. Thanks for the PR!


from utils import *
# Add the parent directory to the system path
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a comment explaining this

Comment thread .devcontainer/postCreateCommand.sh Outdated
sudo make install
tippecanoe --version

# Add local instance of odjitter to the /usr/local/bin directory:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed this part, I removed it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants