Ignore:
Timestamp:
12/18/12 10:08:43 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added support for a secondary instance (#157)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/util.py

    r298 r373  
    22import math
    33import time
     4import sys
    45
    56#------------------------------------------------------------------------------
     
    2627    - the seconds as an integer
    2728    - 1.0 if the value was non-negative, -1.0 if it was negative."""
    28    
     29
    2930    if degrees<0:
    3031        degrees = -degrees
     
    3233    else:
    3334        mul = 1.0
    34        
     35
    3536    deg = int(degrees)
    3637    min = int((degrees*60.0)%60.0)
     
    125126
    126127    This function calculates the rhumb distance."""
    127    
     128
    128129    latitude1 = math.radians(latitude1)
    129130    longitude1 = math.radians(longitude1)
     
    160161    return "%.0f metres" % (visibility,) if visibility<10000 \
    161162           else "%.1f kilometres" % (visibility/1000.0,)
     163
     164#------------------------------------------------------------------------------
     165
     166secondaryInstallation="secondary" in sys.argv
Note: See TracChangeset for help on using the changeset viewer.