[python-win32] raw string
Larry Bates
lbates at syscononline.com
Fri Aug 20 15:36:55 CEST 2004
The following works for me:
a="E:\data\models\neonmodel.dat"
a=a.replace("\n","\\n")
HTH,
Larry Bates
Syscon, Inc.
Message: 1
Date: Thu, 19 Aug 2004 19:19:58 +0530
From: Anand K Rayudu <anand.k.rayudu at esi-group.com>
Subject: [python-win32] raw string
To: python-win32 at python.org
Message-ID: <4124B006.8090203 at esi-group.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Hi all,
i have com interface which returns a string. in my case it is returning
"E:\data\models\neonmodel.dat"
if i print the value \n is interpted as new line charcter and if i use
os.access(file,os.R_OK) it returns false.
How can i specify not to consider the string in raw mode
in static string i would have used it as r"E:\data\modes\neonmodel.dat"
but if i have that already as variable, how can i do it
Thanks for help
More information about the Python-win32
mailing list