Skip to content
This repository was archived by the owner on Jul 10, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ build/
*.swp
*.pyc
sqrl.egg-info/
.idea/
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
except:
from disutils.core import setup

dependencies = ['docopt', 'ed25519', 'pyinotify']
dependencies = ['docopt', 'ed25519', 'py-notify']

setup(
name='sqrl',
Expand Down
6 changes: 4 additions & 2 deletions sqrl/client/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ def __init__(self, url, public_key):
self.http = httplib.HTTPConnection(self.url.netloc, timeout=9)

def _path(self):
res = [self.url.path, "?", self.url.query,
"&", self.params.get()]
res = [self.url.path]
if not "?" in self.url.path:
res.append("?")
res.extend([self.url.query, "&", self.params.get()])
return "".join(res)

def get_url(self):
Expand Down
2 changes: 1 addition & 1 deletion sqrl/sqrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from docopt import docopt

VERSION = "0.0.2"
HOME = os.environ['HOME']
HOME = os.getenv('HOME') or os.getenv('USERPROFILE')
CONFIG_DIR = '.config/sqrl/'
WORKING_DIR = HOME + '/' + CONFIG_DIR

Expand Down