Re: remove characters before last occurance of "."

2011-11-28 Thread plsullivan1
Thanks! -- http://mail.python.org/mailman/listinfo/python-list

remove characters before last occurance of "."

2011-11-28 Thread plsullivan1
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 = C

Re: functions - where to store them

2009-03-11 Thread plsullivan1
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. > T

functions - where to store them

2009-03-11 Thread plsullivan1
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 scri

Re: Newbie - pass variable to cscript

2009-03-03 Thread plsullivan1
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. Tha

Newbie - pass variable to cscript

2009-03-03 Thread plsullivan1
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