Skip to content

Commit

Permalink
added localization support to set/unset actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Howison committed May 2, 2013
1 parent dde35c4 commit 548c565
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,14 +417,14 @@ def set(self,variable,value):

if variable == 'MANPATH' and (not value or value[-1] != ':'):
value += ':'
self._env[variable] = value
self._env[variable] = localize(value)


def unset(self,variable,value=None):
""" Unsets/resets the environment variable to the specified value """

self._env_unset.add(variable)
if value: self.set(variable,value)
if value: self.set(variable,localize(value))


def append(self,variable,path):
Expand Down

0 comments on commit 548c565

Please sign in to comment.