###############################################################################
# Copyright (c) 2011 - 2012 Trimble Navigation Ltd
# $Id: NoPiSG_Utils.py,v 1.3 2012/03/08 04:38:46 shankar Exp $
###############################################################################
#
# NoPiSG_Utils.py
#
# This module contains utility functions called from NoPiSG_Mult_Day.py
###############################################################################

import sys
import os
import datetime
import string
import shlex

DATA_INVALID       = 0xFFFF
DATE_LENGTH        = 8  # Length of Start/end date specified in yyyymmdd format
BASELINE_FILE_COLS = 3  # Number of columns in a CSV format baseline file


###############################################################################
# Function to include NoPi Utils directory in python's module search path
###############################################################################

def add_utils_dir_to_path( ) :

  file_path = os.path.abspath(sys.argv[0])
  file_dir = os.path.dirname(file_path)
  top_dir = os.path.dirname(file_dir)
  new_dir = os.path.join(top_dir, 'NoPi_Utils') 
  sys.path.insert(0, new_dir) 

  return()

