Currently it will mkdir in the location of the .py not where I ask it to, being ~/CentrifugeCode:#The commands import allows the use of linux commands, making this a frontend program import commands def setup(): centDir = raw_input("Where did you install cent, the defualt is ~/Centrifuge >") centDirCommand = "cd " +centDir commands.getoutput(centDirCommand) commands.getoutput('mkdir hi') setup()
Bookmarks