javaextensions/location/tsrc/junit/teardown.py
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 11 May 2010 16:07:20 +0300
branchRCL_3
changeset 17 0fd27995241b
parent 14 04becd199f91
permissions -rw-r--r--
Revision: v2.1.24 Kit: 201019

#
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
# All rights reserved.
# This component and the accompanying materials are made available
# under the terms of "Eclipse Public License v1.0"
# which accompanies this distribution, and is available
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
#
# Initial Contributors:
# Nokia Corporation - initial contribution.
#
# Contributors:
#
# Description: 
#

import os

def setup():
    
    # NPP and BT GPS PSY Cenrep file location
    btpsyfile = "\\epoc32\\RELEASE\\winscw\\UDEB\\Z\\private\\10202be9\\101FE999.txt"
    npppsyfile = "\\epoc32\\RELEASE\\winscw\\UDEB\\Z\\private\\10202be9\\10206915.txt"

    if (os.path.isfile(btpsyfile+'.tmp')):
        # Recover Bluetooth GPS PSY file from temp file
        os.rename(btpsyfile+'.tmp',btpsyfile)
        print "Recovered: " + btpsyfile
    if (os.path.isfile(npppsyfile+'.tmp')):
        # Recover NPP PSY file from temp file
        os.rename(npppsyfile+'.tmp',npppsyfile)
        print "Recovered: " + npppsyfile

if __name__ == "__main__":
	# If this module was started as the main module (given as the py-file to
	# python.exe) take command line arguments and pass them to replaceFile
	setup()