Skip to content

Conversation

gregdenton
Copy link
Collaborator

Related to #228
The home and user_dir variables of the outline.cfg should be specified by the user. If they are not this change provides some defaults.

@gregdenton gregdenton requested a review from bcipriano May 14, 2019 01:15
@gregdenton gregdenton marked this pull request as ready for review May 14, 2019 01:15
@gregdenton gregdenton requested a review from jrray as a code owner May 14, 2019 01:15
@gregdenton gregdenton requested a review from bcipriano May 14, 2019 21:07
__all__ = ["config"]

PYOUTLINE_ROOT_DIR = os.path.dirname(os.path.dirname(__file__))
DEFAULT_USER_DIR = '{}/opencue/outline/{}'.format(tempfile.gettempdir(), getpass.getuser())
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should probably use os.path.join here too.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In anticipation of python3, I'd like to move to using pathlib. I've added a new commit to reflect this. @bcipriano Let me know your thoughts.

@gregdenton gregdenton merged commit 43d9cf4 into AcademySoftwareFoundation:master May 15, 2019
@gregdenton gregdenton deleted the pyoutline-config-defaults branch May 15, 2019 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants