remove characters before last occurance of "."
I need for GIS.GIS.Cadastral\GIS.GIS.Citylimit to be Citylimit. The "cadastral" and "citylimit" will be different as I readlines from a list. In other words, the above could be GIS.GIS.Restricted\GIS.GIS.Pipeline and I would need Pipeline. s = GIS.GIS.Cadastral\GIS.GIS.Citylimit NeededValue = Citylimit Thanks. -- http://mail.python.org/mailman/listinfo/python-list
Re: remove characters before last occurance of "."
Thanks! -- http://mail.python.org/mailman/listinfo/python-list
Newbie - pass variable to cscript
import os os.system('cscript.exe /from:wrk-...@zzz.gov /to:plsulli...@zzz.gov' "C:\\Program Files\\nasa\\nmail.vbs") nmail.vbs works. I need to make it work from a python script. Thanks. -- http://mail.python.org/mailman/listinfo/python-list
Re: Newbie - pass variable to cscript
On Mar 3, 10:07 am, "Gabriel Genellina" wrote: > En Tue, 03 Mar 2009 12:19:22 -0200, escribió: > > > import os > > os.system('cscript.exe /from:wrk-...@zzz.gov /to:plsulli...@zzz.gov' > > "C:\\Program Files\\nasa\\nmail.vbs") > > > nmail.vbs works. I need to make it work from a python script. Thanks. > > ...and the problem is...? > > -- > Gabriel Genellina It's not firing off the vbs script. Have I got the syntax correct? Thanks. My latest attempt: vBS = "C:\\Program Files\\nasa\\nmail.vbs" os.system('cscript /from:wrk-...@pittcountync.gov / to:plsulli...@pittcountync.gov /sub:TEST /msg:hello ' + vBS) -- http://mail.python.org/mailman/listinfo/python-list
functions - where to store them
I have several functions which I would like to store in a different directory so several programs can use them. I can't seem to find much information about how to call a function if the function code is not actually in the script itself. The problem: do I have to cut and paste functions into a script or can I store them in a directory and call them from a script in another directory. If the latter is possible, how is this done? Thanks. -- http://mail.python.org/mailman/listinfo/python-list
Re: functions - where to store them
On Mar 11, 10:46 am, plsulliv...@gmail.com wrote: > I have several functions which I would like to store in a different > directory so several programs can use them. I can't seem to find much > information about how to call a function if the function code is not > actually in the script itself. > The problem: do I have to cut and paste functions into a script or can > I store them in a directory and call them from a script in another > directory. If the latter is possible, how is this done? Thanks. Nevermind... it's like buying something to replace what was lost only to find the lost one. -- http://mail.python.org/mailman/listinfo/python-list