Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

get wd in python

import os

path = os.getcwd()

print(path)
# /Users/mbp/Documents/my-project/python-snippets/notebook

print(type(path))
# <class 'str'>
Comment

PREVIOUS NEXT
Code Example
Python :: load pandas from text 
Python :: how to change django admin text 
Python :: how to make a resizable pygame window 
Python :: python install matplotlib 
Python :: remove all pyc 
Python :: import validation error in django 
Python :: how to change the scale of a picture in pygame 
Python :: Import "reportlab.pdfgen.canvas" could not be resolved 
Python :: how to make a letter animation in python 
Python :: python datetime tomorrow date 
Python :: remove column from df 
Python :: pandas create empty dataframe 
Python :: column dataframe to int 
Python :: python change plot transparency 
Python :: python if main 
Python :: how to change pygame window icon 
Python :: how to talk to girls 
Python :: for loop django template count 
Python :: tkinter label border 
Python :: import kfold 
Python :: conditional row delete pandas 
Python :: displaying flash message django 
Python :: python everything after last slash 
Python :: python list of random values 
Python :: how to convert list into csv in python 
Python :: export multiple python pandas dataframe to single excel file 
Python :: NameError: name ‘np’ is not defined 
Python :: pandas columns to int64 with nan 
Python :: Flask Gmail 
Python :: python find dict in list of dict by id 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =