forked from thomasvs/python-command
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
19 lines (17 loc) · 692 Bytes
/
README
File metadata and controls
19 lines (17 loc) · 692 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
This module implements commands with subtrees of commands.
Suggested use in your project (if you are using git):
- create myproject/extern directory and package:
export PROJECT=myproject
mkdir -p $PROJECT/extern
touch $PROJECT/extern/__init__.py
- add the submodule:
git submodule add https://github.com/thomasvs/python-command.git $PROJECT/extern/python-command
pushd
cd $PROJECT/extern
ln -sf python-command/command command
popd
- test if you can import it:
python -c "from $PROJECT.extern.command import command; print command"
- Commit the result to git
git add $PROJECT/extern/command
git commit -m "add python command module" .gitmodules $PROJECT/extern/command