First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
Hi folks,
When I use this:
filename = os.path.basename(savecases)
I get something like "summerlight.sav"; the extension comes as well. Please, is there a python code to shorten it to "summerlight" only, I mean, to get rid of the extension ?
Thanks a lot, Andre
2 | code highlighting |
Hi folks,
When I use this:
filename = I get something like "summerlight.sav"; "summer_light.sav"
; the extension comes as well. Please, is there a python code to shorten it to "summerlight" "summer_light"
only, I mean, to get rid of the extension ?
Thanks a lot, Andre
3 | retagged |
Hi folks,
When I use this:
filename = os.path.basename(savecases)
I get something like "summer_light.sav"
; the extension comes as well. Please, is there a python code to shorten it to "summer_light"
only, I mean, to get rid of the extension ?
Thanks a lot, Andre