Lozbinator
Programmer
Hi All,
I'm trying to create a directory in my python script, the following is a snippet of some of my code:
[tt]import shutil
import os
import copy
import os.path
import os.mkdir
.....
for folder in wf:
mkdir("C:/CorVuReports/" + folder)
.....
[/tt]
Testing prior to adding "mkdir" was fine. However when I run this now, I get the error "ImportError: No module named mkdir".
I'm trying to create a directory for every item in my list "wf".
Can anybody tell me what I am doing wrong?
Thanks in advance!
I'm trying to create a directory in my python script, the following is a snippet of some of my code:
[tt]import shutil
import os
import copy
import os.path
import os.mkdir
.....
for folder in wf:
mkdir("C:/CorVuReports/" + folder)
.....
[/tt]
Testing prior to adding "mkdir" was fine. However when I run this now, I get the error "ImportError: No module named mkdir".
I'm trying to create a directory for every item in my list "wf".
Can anybody tell me what I am doing wrong?
Thanks in advance!