Skip to content

Commit c1aa659

Browse files
committed
More clear virtualenv ReadMe instructions
1 parent b715291 commit c1aa659

File tree

1 file changed

+31
-6
lines changed

1 file changed

+31
-6
lines changed

README.md

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,19 @@ If you want a visual tool to help make your MySQL life easier, [try MySQL Workbe
5353

5454
#### [Virtualenv](http://virtualenv.readthedocs.org/en/latest/)
5555

56-
Mac:
56+
Mac: (The old regular way):
57+
58+
```bash
59+
sudo easy_install virtualenv
60+
```
61+
62+
Mac: (The new fancy way):
5763

58-
sudo easy_install virtualenv
64+
```bash
65+
sudo easy_install virtualenvwrapper
66+
```
5967

60-
Windows: (can be used with Mac also, but you may need to use "sudo")
68+
Windows:
6169

6270
pip install virtualenv
6371

@@ -83,23 +91,34 @@ git clone [LOCATION OF YOUR FORKED SELENIUMBASE GITHUB FOLDER]/SeleniumBase.git
8391
cd SeleniumBase
8492
```
8593

86-
(NOTE: If you decided to download SeleniumBase rather than Git-cloning it, you can skip the above step.)
94+
If you only need a local copy and don't plan on checking in any changes that you make, you can just clone the base repo as is:
95+
96+
```bash
97+
git clone https://github.com/mdmintz/SeleniumBase.git
98+
```
8799

88100
#### **Step 2:** Create a virtualenv for seleniumbase
89101

90-
Mac:
102+
Mac: (If you're using the old regular way):
91103

92104
```bash
93105
mkdir -p ~/Envs
94106
virtualenv ~/Envs/seleniumbase
95107
source ~/Envs/seleniumbase/bin/activate
96108
```
97109

110+
Mac: (If you're using the new fancy way):
111+
112+
```bash
113+
mkvirtualenv seleniumbase
114+
```
115+
98116
Windows:
99117

100-
Same as above, except:
118+
Use the "virtualenv" version above instead of "mkvirtualenv", but also make the following changes:
101119
1: Don't use "-p"
102120
2: Replace "~/" from above with the location of your home directory
121+
3: Instead of using the "source" command, go into the folder created and type ``activate``
103122

104123
If you ever need to leave your virtual environment, use the following command:
105124

@@ -109,10 +128,16 @@ deactivate
109128

110129
You can always jump back in later:
111130

131+
(If you're using the old regular way):
112132
```bash
113133
source ~/Envs/seleniumbase/bin/activate
114134
```
115135

136+
(If you're using the new fancy way):
137+
```bash
138+
workon seleniumbase
139+
```
140+
116141
#### **Step 3:** Install necessary packages from the SeleniumBase folder and compile the test framework (from within your virtual environment)
117142

118143
If you don't desire connecting to a MySQL DB to record the results of your local test runs, run this command:

0 commit comments

Comments
 (0)