mailr28191 - /trunk/lib/system.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by tlinnet on April 02, 2016 - 17:42:
Author: tlinnet
Date: Sat Apr  2 17:42:55 2016
New Revision: 28191

URL: http://svn.gna.org/viewcvs/relax?rev=28191&view=rev
Log:
Letting the lib.system.cd function notify the observer, when chanding 
directory.


Modified:
    trunk/lib/system.py

Modified: trunk/lib/system.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/lib/system.py?rev=28191&r1=28190&r2=28191&view=diff
==============================================================================
--- trunk/lib/system.py (original)
+++ trunk/lib/system.py Sat Apr  2 17:42:55 2016
@@ -27,6 +27,7 @@
 
 # relax module imports.
 import lib.arg_check
+from status import Status; status = Status()
 
 
 def cd(path, verbose=False):
@@ -54,6 +55,9 @@
     # Print current working directory.
     print("The current working directory is now changed to: %s"%getcwd())
 
+    # Notify observers that the current working directory has changed.
+    status.observers.system_cwd_path.notify()
+
 
 def pwd(verbose=True):
     """Print and return string of the current working directory.  Equivalent 
of python module os.getcwd(). 




Related Messages


Powered by MHonArc, Updated Sat Apr 02 18:00:07 2016