#!python3 in script file

Sun, 21 Jan 2018 01:15:01 +0000

author
Tuomo Valkonen <tuomov@iki.fi>
date
Sun, 21 Jan 2018 01:15:01 +0000
changeset 23
86b42610d5a8
parent 22
c3e95212e3f0
child 24
94d58d514d69

#!python3 in script file

README.md file | annotate | diff | comparison | revisions
config.py file | annotate | diff | comparison | revisions
instance.py file | annotate | diff | comparison | revisions
--- a/README.md	Sun Jan 21 01:14:06 2018 +0000
+++ b/README.md	Sun Jan 21 01:15:01 2018 +0000
@@ -11,15 +11,15 @@
  - [rumps](https://github.com/jaredks/rumps) (Ridiculously Uncomplicated macOS Python Statusbar apps)
  - [keyring](https://pypi.python.org/pypi/keyring)
 
-To create a standalone app, you can
+For passphrase use authentication to work correctly, it is useful to create create a standalone Mac app. This can be don with `py2app`. You can install it with
 
     pip install py2app
 
-(for alternatives see [py2app documentation](https://py2app.readthedocs.io/en/latest/install.html#installing-with-pip)), and then
+(for alternatives see [py2app documentation](https://py2app.readthedocs.io/en/latest/install.html#installing-with-pip)). Then, to build the standalone app, run
 
     python3 setup.py py2app
 
-This will place the app under `dist/`.
+The apps hould be placed under `dist/`.
 
 ## Usage
 
--- a/config.py	Sun Jan 21 01:14:06 2018 +0000
+++ b/config.py	Sun Jan 21 01:15:01 2018 +0000
@@ -1,3 +1,4 @@
+#!/usr/local/bin/python3
 #
 # Borgend configuration loader
 #
--- a/instance.py	Sun Jan 21 01:14:06 2018 +0000
+++ b/instance.py	Sun Jan 21 01:15:01 2018 +0000
@@ -89,7 +89,7 @@
                 res['type']='UNKNOWN'
             return res
         except:
-            logging.debug('JSON parse failed on: "%s"' % line)
+            logging.debug('JSON parse failed on: "%s"' % str(line))
 
             errmsg=line
             for line in iter(stream.readline, b''):

mercurial