[Pkg-privacy-commits] [onionshare] 25/55: Oops, use spaces instead of tabs

Ulrike Uhlig u-guest at moszumanska.debian.org
Thu Sep 8 10:26:48 UTC 2016


This is an automated email from the git hooks/post-receive script.

u-guest pushed a commit to branch debian
in repository onionshare.

commit 7e8b3e175092732ba6fce72fb74494bb70beb38e
Author: Micah Lee <micah at micahflee.com>
Date:   Sun Sep 4 20:08:36 2016 -0700

    Oops, use spaces instead of tabs
---
 onionshare/helpers.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/onionshare/helpers.py b/onionshare/helpers.py
index 04e70c1..d80122d 100644
--- a/onionshare/helpers.py
+++ b/onionshare/helpers.py
@@ -39,13 +39,13 @@ def get_resource_path(filename):
         resources_dir = os.path.join(sys.prefix, 'share/onionshare')
     elif getattr(sys, 'frozen', False): # Check if app is "frozen" with pyinstaller, cx_Freeze
         # https://pythonhosted.org/PyInstaller/#run-time-information
-		# http://cx-freeze.readthedocs.io/en/latest/faq.html#using-data-files
-		if p == 'Windows':
-			# Windows is using cx_Freeze
-			resources_dir = os.path.join(os.path.dirname(sys.executable), 'resources')
-		else:
-			# OS X is using PyInstaller
-			resources_dir = sys._MEIPASS
+        # http://cx-freeze.readthedocs.io/en/latest/faq.html#using-data-files
+        if p == 'Windows':
+            # Windows is using cx_Freeze
+            resources_dir = os.path.join(os.path.dirname(sys.executable), 'resources')
+        else:
+            # OS X is using PyInstaller
+            resources_dir = sys._MEIPASS
     else:  # Look for resources directory relative to python file
         resources_dir = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))), 'resources')
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onionshare.git



More information about the Pkg-privacy-commits mailing list