Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mkdir() help
#5
(Feb-17-2018, 05:30 PM)Gribouillis Wrote: Why not use my code? It is very good. In your code the os.getcwd() gets the current working directory but it does nothing with it, so you can safely remove this line. The os.chdir('export') tries to change the current directory by going to a directory named 'export', but it fails because there is no such directory. Finally the name.get() in the last statement won't work because the variable name is not defined. Or may be it is a tkinter variable in your program?

export does exist and the name.get is part of a folder creation system
Reply


Messages In This Thread
mkdir() help - by SteampunkMaverick12 - Feb-17-2018, 11:50 AM
RE: mkdir() help - by Gribouillis - Feb-17-2018, 01:28 PM
RE: mkdir() help - by SteampunkMaverick12 - Feb-17-2018, 03:53 PM
RE: mkdir() help - by Gribouillis - Feb-17-2018, 05:30 PM
RE: mkdir() help - by SteampunkMaverick12 - Feb-17-2018, 06:02 PM
RE: mkdir() help - by DeaD_EyE - Feb-17-2018, 06:02 PM
RE: mkdir() help - by SteampunkMaverick12 - Feb-18-2018, 03:20 PM
RE: mkdir() help - by Gribouillis - Feb-17-2018, 06:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  directory not being created after os.mkdir() CAD79 3 580 Mar-16-2024, 04:00 PM
Last Post: deanhystad
  OSERROR When mkdir Oshadha 4 1,963 Jun-29-2022, 08:50 AM
Last Post: DeaD_EyE
  Python Paramiko mkdir command overwriting existing folder. How can i stop that? therenaydin 1 3,372 Aug-02-2020, 11:13 PM
Last Post: therenaydin

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020