Skip to content
This repository has been archived by the owner on Jun 4, 2020. It is now read-only.

Commit

Permalink
Merge pull request #36 from GISeHealth/master
Browse files Browse the repository at this point in the history
typos and edits to README.md
  • Loading branch information
vmora committed Feb 12, 2016
2 parents efeb077 + 5fbcb73 commit 2f0e1b4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ Build and install the qgis plugin

cd
git clone https://github.com/Oslandia/qgis-versioning.git
cd .qgis2/python/plugins/
cd qgis-versioning
./package.py # compresses all files into qgis_versioning.zip
cd .qgis2/python/plugins/
mkdir qgis-versioning
cd qgis-versioning
cmake $HOME/qgis-versioning && make
# unzip contents of directory *qgis_versioning* found in qgis_versioning.zip

If you have admin acces to a local postgres/postis server, you can run the regression tests:

export PYTHONPATH=$PWD
make test
./test.py # As of version 0.4; was *make test* in prior versions

Use the plugin in qgis
----------------------
Expand Down
8 changes: 4 additions & 4 deletions package.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
import tempfile
import shutil

__currendir = os.path.abspath(os.path.dirname(__file__))
out = os.path.join(__currendir,"qgis_versioning.zip")
__current_dir = os.path.abspath(os.path.dirname(__file__))
out = os.path.join(__current_dir,"qgis_versioning.zip")

files = ["README.md", "LICENSE", "metadata.txt"]
for file_ in os.listdir(__currendir):
for file_ in os.listdir(__current_dir):
if file_[-4:]==".svg" or file_[-3:]==".py" or file_[-3:]==".ui":
files.append(file_)

Expand All @@ -22,7 +22,7 @@
os.mkdir(tmpdir)

for file_ in files:
shutil.copy(os.path.join(__currendir, file_),
shutil.copy(os.path.join(__current_dir, file_),
os.path.join(tmpdir, file_))

os.chdir(tempfile.gettempdir())
Expand Down
3 changes: 2 additions & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
exit()

__currendir = os.path.dirname(__file__)

tests = []
test_directories = ["test"]
for dir_ in test_directories:
test_dir = os.path.join(__currendir, dir_)
test_dir = os.path.join(__current_dir, dir_)
for file_ in os.listdir(test_dir):
if file_[-8:]=="_test.py":
tests.append(os.path.join(test_dir, file_))
Expand Down

0 comments on commit 2f0e1b4

Please sign in to comment.