[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [depictor/master] Correctly return to the execution directory, so invocation of ./website.py can succeed.



commit a168d6af049fd9b08fcae161973a0696021dd529
Author: Tom Ritter <tom@xxxxxxxxx>
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"

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits