[Pkg-privacy-commits] [obfsproxy] 136/353: Slight improvements to the executable script.
Ximin Luo
infinity0 at moszumanska.debian.org
Sat Aug 22 13:01:51 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository obfsproxy.
commit a66db465f2c8fb418fbab616de299b3c113b39b3
Author: George Kadianakis <desnacked at riseup.net>
Date: Wed Mar 27 17:03:01 2013 -0700
Slight improvements to the executable script.
Suggested by Arturo.
---
ChangeLog | 1 +
bin/pyobfsproxy | 6 +++++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 4fd3876..a070fa7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@ Changes in version 0.0.3 - ??
- Add shared secret support to obfs2.
- Add support for per-connection SOCKS arguments.
- Add a setup script for py2exe.
+ - Slightly improve the executable script.
Changes in version 0.0.2 - 2013-02-17
diff --git a/bin/pyobfsproxy b/bin/pyobfsproxy
index 302fab1..a716b18 100755
--- a/bin/pyobfsproxy
+++ b/bin/pyobfsproxy
@@ -2,7 +2,11 @@
import sys, os
-sys.path.insert(0, os.path.abspath(os.getcwd()))
+# Forcerfully add root directory of the project to our path.
+dir_of_executable = os.path.dirname(__file__)
+path_to_project_root = os.path.abspath(os.path.join(dir_of_executable, '..'))
+
+sys.path.insert(0, path_to_project_root)
from obfsproxy.pyobfsproxy import run
run()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/obfsproxy.git
More information about the Pkg-privacy-commits
mailing list