javaextensions/location/tsrc/junit/teardown.py
branchRCL_3
changeset 14 04becd199f91
equal deleted inserted replaced
13:f5050f1da672 14:04becd199f91
       
     1 #
       
     2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 # All rights reserved.
       
     4 # This component and the accompanying materials are made available
       
     5 # under the terms of "Eclipse Public License v1.0"
       
     6 # which accompanies this distribution, and is available
       
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 #
       
     9 # Initial Contributors:
       
    10 # Nokia Corporation - initial contribution.
       
    11 #
       
    12 # Contributors:
       
    13 #
       
    14 # Description: 
       
    15 #
       
    16 
       
    17 import os
       
    18 
       
    19 def setup():
       
    20     
       
    21     # NPP and BT GPS PSY Cenrep file location
       
    22     btpsyfile = "\\epoc32\\RELEASE\\winscw\\UDEB\\Z\\private\\10202be9\\101FE999.txt"
       
    23     npppsyfile = "\\epoc32\\RELEASE\\winscw\\UDEB\\Z\\private\\10202be9\\10206915.txt"
       
    24 
       
    25     if (os.path.isfile(btpsyfile+'.tmp')):
       
    26         # Recover Bluetooth GPS PSY file from temp file
       
    27         os.rename(btpsyfile+'.tmp',btpsyfile)
       
    28         print "Recovered: " + btpsyfile
       
    29     if (os.path.isfile(npppsyfile+'.tmp')):
       
    30         # Recover NPP PSY file from temp file
       
    31         os.rename(npppsyfile+'.tmp',npppsyfile)
       
    32         print "Recovered: " + npppsyfile
       
    33 
       
    34 if __name__ == "__main__":
       
    35 	# If this module was started as the main module (given as the py-file to
       
    36 	# python.exe) take command line arguments and pass them to replaceFile
       
    37 	setup()