Commit e7f84e41 authored by Rick Gruber-Riemer's avatar Rick Gruber-Riemer

Correcting errors in for logging and file copy

parent c6f59a38
This diff is collapsed.
......@@ -10,6 +10,8 @@ import os
import os.path as osp
import sys
import tools
def getFGHome():
"""Constructs the path to FGHome.
......@@ -43,8 +45,7 @@ def get_elev_out_path(home_path):
def _get_original_elev_nas_path():
my_file = osp.realpath(__file__)
my_dir = osp.split(my_file)[0]
my_dir = tools.get_osm2city_directory()
return my_dir + os.sep + "elev.nas"
......@@ -14,6 +14,7 @@ import csv
import logging
import math
import os
import os.path as osp
import Queue
import re
import shutil
......@@ -39,6 +40,16 @@ stats = None
transform = None
def get_osm2city_directory():
"""Determines the absolute path of the osm2city root directory.
Used e.g. when copying roads.eff, elev.nas and other resources.
my_file = osp.realpath(__file__)
my_dir = osp.split(my_file)[0]
return my_dir
class Interpolator(object):
"""load elevation data from file, interpolate"""
def __init__(self, filename, fake=False, clamp=False):
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment