tfix for virtualenv install - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 692d215f26a2f31bd9ae1d56f7e493299d6481da DIR parent b8a5d4146d65a6d1523d15fa2cccc5788642d38d HTML Author: ThomasV <thomasv@gitorious> Date: Thu, 23 Oct 2014 22:44:41 +0200 fix for virtualenv install Diffstat: M setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- DIR diff --git a/setup.py b/setup.py t@@ -17,7 +17,10 @@ if sys.version_info[:3] < (2, 6, 0): usr_share = util.usr_share_dir() if not os.access(usr_share, os.W_OK): - sys.exit("Error: cannot write to %s.\nIf you do not have root permissions, you may install Electrum a virtualenv.\nAlso, please note that you can run Electrum without installing it on your system."%usr_share) + try: + os.mkdir(usr_share) + except: + sys.exit("Error: cannot write to %s.\nIf you do not have root permissions, you may install Electrum in a virtualenv.\nAlso, please note that you can run Electrum without installing it on your system."%usr_share) data_files = [] if (len(sys.argv) > 1 and (sys.argv[1] == "sdist")) or (platform.system() != 'Windows' and platform.system() != 'Darwin'):