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

ConfigProxy.__init__ crashes when an absolute/relative path is NOT given using the -c option #61

Closed
cameri opened this issue Jan 31, 2013 · 1 comment

Comments

@cameri
Copy link

cameri commented Jan 31, 2013

os.path.split(self.base.filename)[0] returns empty when a relative or absolute path is not given using the -c option when pointing to a configuration file.
The following line in ConfigProxy.init returns just '/users/%s.conf'.
In the case that os.path.split(...)[0] returns an empty string, the code should try to find the file from the current directory.

path = os.path.split(self.base.filename)[0] + '/users/%s.conf'%user
@Eugeny
Copy link
Member

Eugeny commented Jan 31, 2013

ConfigProxy is no longer present in the upcoming Ajenti version, so this rare case isn't worth fixing

@Eugeny Eugeny closed this as completed Jan 31, 2013
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

2 participants