Skip to content

Commit

Permalink
Fix QtDesigner in virtualenv in Windows
Browse files Browse the repository at this point in the history
Quotes are not needed and actually break it even when applied individually to each path.

Since everythiung is included 'absolute' (epyq.widgets.---) the root must also be included in the %PYTHONPATH%.

Ref T141
  • Loading branch information
altendky committed Mar 29, 2016
1 parent 18bac81 commit 94d7528
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ def setup(path):
if sys.platform == 'win32':
with open(os.path.join(mydir, 'activate.bat'), 'w') as f:
activate = activate.replace('\\', '/')
f.write('set PYQTDESIGNERPATH="{root}\epyq;{root}\epyq\widgets"\n'
f.write('set PYQTDESIGNERPATH={root}\epyq;{root}\epyq\widgets\n'
.format(root=mydir))
f.write('set PYTHONPATH="{root}\epyq;{root}\epyq\widgets"\n'
f.write('set PYTHONPATH={root};{root}\epyq;{root}\epyq\widgets\n'
.format(root=mydir))
f.write('{}\n'.format(activate))

Expand Down

0 comments on commit 94d7528

Please sign in to comment.