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

Fix python_path config field #1202

Merged
merged 5 commits into from
Jul 10, 2020
Merged

Fix python_path config field #1202

merged 5 commits into from
Jul 10, 2020

Conversation

deliahu
Copy link
Member

@deliahu deliahu commented Jul 4, 2020

No description provided.

@deliahu deliahu requested a review from vishalbollu July 4, 2020 00:38
@@ -142,6 +142,10 @@ func WriteFile(data []byte, path string) error {
return nil
}

func IsAbs(path string) bool {
return strings.HasPrefix(path, "/") || strings.HasPrefix(path, "~/")
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be confusing if this returns true for tilde prefixed paths. Rename to IsAbsOrTildePrefixed

GetAllPaths() []string
// Return all paths in the project, relative to the root
AllPaths() []string
// Return the contents of a file, given the path (relative to the root)
Copy link
Contributor

@vishalbollu vishalbollu Jul 7, 2020

Choose a reason for hiding this comment

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

relative to the root -> relative to the project root?

@vishalbollu vishalbollu merged commit 064fbaa into master Jul 10, 2020
@vishalbollu vishalbollu deleted the python-path branch July 10, 2020 21:54
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.

2 participants