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

Parent directory is added to given certs path #279

Open
yorickvanzweeden opened this issue Mar 5, 2020 · 4 comments
Open

Parent directory is added to given certs path #279

yorickvanzweeden opened this issue Mar 5, 2020 · 4 comments

Comments

@yorickvanzweeden
Copy link

In baseclient.py:158-161:

       certs = self.certs or "/certs/"
       ssl_path = os.path.join(os.pardir, certs)
       try:
           cert_path = os.listdir(ssl_path)

If given an absolute path, nothing changes. If given a relative path, the parent directory is added. Adding the parent directory seems confusing to me, as I would expect I should give the path relative from the working directory.

I appear to not be the only one: #30 (comment)

Can this be changed or atleast mentioned in the README?

Example:
project_dir
|--- betfair
_ |--- script.py
_ |--- certs/

I would expect to give the argument './betfair/certs/', but this would lead to '../betfair/certs'. To account for this, I would have to put in 'project_dir/betfair/certs/', leading to '../project_dir/betfair/certs'. As my working directory is project_dir, it seems like I am referring to 'project_dir/project_dir/betfair/certs'

@liampauling
Copy link
Member

Welcome any PR's to the readme or code

@mzaja
Copy link
Contributor

mzaja commented May 6, 2023

@liampauling What went wrong with this pull request? I can see it was closed rather than merged after being open for 1.5 years.

@liampauling
Copy link
Member

My comments where not addressed so I guess I just closed to clean it up, happy to reopen once all fixed

@mzaja
Copy link
Contributor

mzaja commented May 27, 2023

Pull request opened: #520.

liampauling added a commit that referenced this issue Jul 24, 2023
#279 Stop prepending pardir to certs path
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

No branches or pull requests

3 participants