#!/usr/bin/env python
# -*- coding: UTF-8 -*-

import time,sys,os,re

#print "dir of cterm: "+str(dir(cterm))

ID=long(sys.argv[0])

#ConnectSite("nenu")
#time.sleep(2)

#SendParsedString('^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[DM\n\n')
#SendParsedString(0, '^[[D^[[D^[[D^[[D^[[D^[[D^[[D^[[DF\n\n')

#for i in range(3):
#	ShowInt(i)	
#	str1=GetText(i)

#ConnectSite("水木清华★.null")
#time.sleep(2)

#Disconnect(1)
#Disconnect()

#print 'in test.py'
#str1=GetAttrText(ID, 3)
#print str1

#print globals().keys()
#SendCommand(ID_LEAVE) # 锁定屏幕
#SendCommand(ID_SWITCH_VIEW_FIRST+1) # 将第2个打开的子窗口切换到前台
#SendCommand(ID_FAVORITESITE5) # 连接最爱站点第5个
#SendCommand(ID_EDIT_PASTE) # 粘贴，若是位于文章列表，且剪切板内容超过3行，自动分析标题发文
#SendCommand(ID_APP_EXIT) #退出CTerm
#SendCommand(ID_EDIT_DLG) #编辑状态时显示编辑框
#SendCommand(ID_RIGHTCODE)
#SendCommand(ID_EDIT_DLG)
#print "sending test"
SendCommand(ID_TEST)

#GotoBoardSimple(ID, 'Love')
#GotoBoard(ID, 'VB')

#ID=GetSessionID()
#exitstr1=["\x1b[D"]*10
#exitstr1.extend(["\n",'g',"\n","\n","\n","\n"])
#print exitstr1
#SendAndWait(ID,exitstr1)

#s=GetText(ID,0,23)
#print s
#s=GetAttrText(ID,1,3)
#print s

#SetScriptInfo("test信息")

#print GetWorkDir()
#s=GetScriptDir()
#print s
#f=file(s+r'\test.txt', 'w')
#f.write('just test')
#f.close()

#GetPicture('http://127.0.0.1:51680/cgi-bin/showfile301?name=test.jpg')
#print sys.path
#SetAutoReply("我不在，别烦我！")

print GetFilePath()