Hello,
as I'm new to python I've stumbled accros os.system and its not very
well documented usage.
I use Win XP Pro and Python 2.5.
Here is the code snippet:
--------------------------------------------------------------------------------------------------
import time
import os
dir = "C:\\Docume nts and Settings\\somep ath\\"
fileName = time.strftime(" %d%m%Y")
os.system('gvim dir+fileName+". txt"')
---------------------------------------------------------------------------------------------------
The problem is that concatenated variable dir+fileName doesn't get
expanded as expected.
Is there anything I omitted?
svata
as I'm new to python I've stumbled accros os.system and its not very
well documented usage.
I use Win XP Pro and Python 2.5.
Here is the code snippet:
--------------------------------------------------------------------------------------------------
import time
import os
dir = "C:\\Docume nts and Settings\\somep ath\\"
fileName = time.strftime(" %d%m%Y")
os.system('gvim dir+fileName+". txt"')
---------------------------------------------------------------------------------------------------
The problem is that concatenated variable dir+fileName doesn't get
expanded as expected.
Is there anything I omitted?
svata
Comment