8
edits
(→News: gitlab) |
(→Install: indications for beginners) |
||
Line 122: | Line 122: | ||
3. add the directory with osm2city modules to your [http://docs.python.org/2/using/cmdline.html#envvar-PYTHONPATH PYTHONPATH] (unless your PYTHONPATH already contains . (the dot)) | 3. add the directory with osm2city modules to your [http://docs.python.org/2/using/cmdline.html#envvar-PYTHONPATH PYTHONPATH] (unless your PYTHONPATH already contains . (the dot)) | ||
You can add | |||
<syntaxhighlight lang="bash"> | |||
PYTHONPATH=$PYTHONPATH:/path/of/osm2city | |||
</syntaxhighlight> | |||
or | |||
<syntaxhighlight lang="bash"> | |||
PYTHONPATH=$PYTHONPATH:. | |||
</syntaxhighlight> | |||
into your hidden configuration file <b>.bashrc</b> located in your home directory. | |||
4. soft link osm2city-data/tex and osm2city-data/tex.src into osm2city/ | 4. soft link osm2city-data/tex and osm2city-data/tex.src into osm2city/. Typically you will have to execute these commands. | ||
<syntaxhighlight lang="bash"> | |||
cd osm2city | |||
ln -sf ../osm2city-data/tex.src | |||
ln -sf ../osm2city-data/tex | |||
</syntaxhighlight> | |||
Then the sub-directory of osm2city will appears like that | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
osm2city/ | osm2city/ |
edits