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

parsing experiment dir fails #8

Closed
lzamparo opened this issue Nov 13, 2014 · 1 comment
Closed

parsing experiment dir fails #8

lzamparo opened this issue Nov 13, 2014 · 1 comment

Comments

@lzamparo
Copy link
Contributor

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

@lzamparo
Copy link
Contributor Author

Ugh, markdown ate part of my first example:

os.path.realpath('/projects/Spearmint/examples') returns
'/home/lee/
/projects/Spearmint/examples'

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

1 participant