Remove settings package; Cleaned up messages file #47
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Wasn't a need for the settings directory, so it has been refactored out. The following files were moved, in reference to the root
serpentTools
directorysettings/__init__.py
-->settings.py
settings/messages.py
-->messages.py
settings/variables.yaml
-->variables.yaml
The
setup.py
script was modified to remove theserpentTools.settings
package, and move the variables file to/from the correct place upon install.All calls to the settings package, i.e.
from serpentTools.settings import rc
still work, but the message imports had to be modified to point towardsserpentTools.messages
. The latter change is the cause for most of the files being modifiedChanges to
messages.py
There is not longer a single error function with an optional
fatal
argument. There is now theerror
andcritical
functions. The difference is thaterror
should be used if an exception was suppressed internally, while thecritical
function should be used in the event of a serious failure. Perhaps bundled inside theSerpentToolsException
class?Also, the now correctly named
deprecated
decorator takes an argument on use.