We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using python 2.7.8 (default, Oct 18 2014, 12:50:18) [GCC 4.9.1],
I found that os.path.realpath() does not remove the '' character if the path is specified as (e.g) '/path/to/experiments/':
'/home/lee/~/projects/Spearmint/examples'
I suggest that os.path.realpath() should wrap os.path.expanduser(), as in the following example.
os.path.realpath(os.path.expanduser('~/projects/Spearmint/examples/')) '/home/lee/projects/Spearmint/examples' os.path.realpath(os.path.expanduser('~/projects/Spearmint/examples/'))
I'll create a PR
The text was updated successfully, but these errors were encountered:
Ugh, markdown ate part of my first example:
os.path.realpath('/projects/Spearmint/examples') returns '/home/lee//projects/Spearmint/examples'
Sorry, something went wrong.
No branches or pull requests
Using python 2.7.8 (default, Oct 18 2014, 12:50:18) [GCC 4.9.1],
I found that os.path.realpath() does not remove the '
' character if the path is specified as (e.g) '/path/to/experiments/':I suggest that os.path.realpath() should wrap os.path.expanduser(), as in the following example.
I'll create a PR
The text was updated successfully, but these errors were encountered: