[tor-commits] [depictor/master] Correctly return to the execution directory, so invocation of ./website.py can succeed.
    tom at torproject.org 
    tom at torproject.org
       
    Fri Nov 17 17:13:29 UTC 2017
    
    
  
commit a168d6af049fd9b08fcae161973a0696021dd529
Author: Tom Ritter <tom at ritter.vg>
Date:   Fri Nov 17 11:11:43 2017 -0600
    Correctly return to the execution directory, so invocation of ./website.py can succeed.
---
 website.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/website.py b/website.py
index 31d526e..ded0fce 100755
--- a/website.py
+++ b/website.py
@@ -1414,7 +1414,7 @@ class WebsiteWriter:
 
 		os.chdir(os.path.join(os.path.dirname(__file__), 'stem'))
 		stem_version = subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD'])
-		os.chdir(os.path.join(os.path.dirname(__file__)))
+		os.chdir('../../')
 
 		self.site.write("</div>\n"
 		+ "</div>\n"
    
    
More information about the tor-commits
mailing list