File tree 2 files changed +23
-5
lines changed
2 files changed +23
-5
lines changed Original file line number Diff line number Diff line change @@ -4,17 +4,19 @@ Normalizes Unicode to ASCII equivalents
4
4
5
5
## Installation
6
6
7
- I would recommend setting up a virtual environment so when you install the requirements it doesn't mess with your system python.
7
+ Clone the repository somewhere on your system. You will need to pop up a terminal window to do this.
8
+
9
+ Then copy and paste the following commands into the command window.
8
10
9
11
``` bash
10
12
git clone https://github.com/unixwzrd/UnicodeFix.git
11
13
cd UnicodeFix
12
- python -m venv venv
13
- source venv/bin/activate
14
- pip install -r requirements.txt
15
- chmod +x bin/cleanup-text.py
14
+ bash setup.sh
16
15
```
17
16
17
+ Setup will create a virtual environment to keep your system python clean.
18
+ It will add the items needed to startup the script into your .bashrc
19
+
18
20
## Usage
19
21
20
22
``` bash
@@ -34,6 +36,9 @@ options:
34
36
python bin/cleanup-text.py < input_file>
35
37
```
36
38
39
+ ## Coming SOon
40
+ - macSO Shortcut
41
+
37
42
## License
38
43
39
44
Original file line number Diff line number Diff line change
1
+ $! /bin/bash
2
+
3
+ python -m venv venv
4
+ source venv/bin/activate
5
+ pip install -r requirements.txt
6
+ chmod +x bin/cleanup-text.py
7
+
8
+ # Add the script to your PATH
9
+ if [[ ! " $PATH " =~ " $PWD /bin" ]]; then
10
+ echo " adding necessary items for Python script to run"
11
+ echo " source $PWD /venv/bin/activate" >> ~ /.bashrc
12
+ echo " export PATH=\" $PWD /bin:\$ PATH\" " >> ~ /.bashrc
13
+ fi
You can’t perform that action at this time.
0 commit comments