[{"data":1,"prerenderedAt":1171},["ShallowReactive",2],{"doc-\u002Fstandard-library\u002Fos.getcwd-function-explained":3},{"id":4,"title":5,"body":6,"description":1164,"extension":1165,"meta":1166,"navigation":60,"path":1167,"seo":1168,"stem":1169,"__hash__":1170},"content\u002Fstandard-library\u002Fos.getcwd-function-explained.md","os.getcwd() Function Explained",{"type":7,"value":8,"toc":1142},"minimark",[9,13,21,28,33,102,108,112,117,133,140,144,154,192,197,219,223,226,243,246,269,272,276,282,285,352,362,365,369,457,463,466,480,488,492,495,501,514,517,553,556,572,578,592,598,601,605,610,624,627,719,729,733,738,765,767,875,882,886,891,913,916,993,998,1001,1057,1068,1072,1076,1079,1083,1086,1090,1093,1097,1100,1104,1138],[10,11,5],"h1",{"id":12},"osgetcwd-function-explained",[14,15,16,20],"p",{},[17,18,19],"code",{},"os.getcwd()"," returns the current working directory in Python.",[14,22,23,24,27],{},"This is useful when you want to know which folder Python is currently using. It matters because relative file paths are based on this folder. If your code opens or saves files using names like ",[17,25,26],{},"\"data.txt\"",", Python will look in the current working directory unless you give a full path.",[29,30,32],"h2",{"id":31},"quick-answer","Quick answer",[34,35,40],"pre",{"className":36,"code":37,"language":38,"meta":39,"style":39},"language-python shiki shiki-themes material-theme-lighter github-light github-dark","import os\n\ncurrent_folder = os.getcwd()\nprint(current_folder)\n","python","",[17,41,42,55,62,86],{"__ignoreMap":39},[43,44,47,51],"span",{"class":45,"line":46},"line",1,[43,48,50],{"class":49},"sVHd0","import",[43,52,54],{"class":53},"su5hD"," os\n",[43,56,58],{"class":45,"line":57},2,[43,59,61],{"emptyLinePlaceholder":60},true,"\n",[43,63,65,68,72,75,79,83],{"class":45,"line":64},3,[43,66,67],{"class":53},"current_folder ",[43,69,71],{"class":70},"smGrS","=",[43,73,74],{"class":53}," os",[43,76,78],{"class":77},"sP7_E",".",[43,80,82],{"class":81},"slqww","getcwd",[43,84,85],{"class":77},"()\n",[43,87,89,93,96,99],{"class":45,"line":88},4,[43,90,92],{"class":91},"sptTA","print",[43,94,95],{"class":77},"(",[43,97,98],{"class":81},"current_folder",[43,100,101],{"class":77},")\n",[14,103,104,105,107],{},"Use ",[17,106,19],{}," to get the current working directory as a string.",[29,109,111],{"id":110},"what-osgetcwd-does","What os.getcwd() does",[14,113,114,116],{},[17,115,19],{},":",[118,119,120,124,127,130],"ul",{},[121,122,123],"li",{},"Returns the current working directory",[121,125,126],{},"Gives the result as a string path",[121,128,129],{},"Shows the folder Python is currently using",[121,131,132],{},"Is often helpful before opening or saving files",[14,134,135,136],{},"In simple terms, it tells you: ",[137,138,139],"strong",{},"“What folder is Python working in right now?”",[29,141,143],{"id":142},"basic-example","Basic example",[14,145,146,147,150,151,153],{},"First, import the ",[17,148,149],{},"os"," module. Then call ",[17,152,19],{}," with no arguments.",[34,155,156],{"className":36,"code":37,"language":38,"meta":39,"style":39},[17,157,158,164,168,182],{"__ignoreMap":39},[43,159,160,162],{"class":45,"line":46},[43,161,50],{"class":49},[43,163,54],{"class":53},[43,165,166],{"class":45,"line":57},[43,167,61],{"emptyLinePlaceholder":60},[43,169,170,172,174,176,178,180],{"class":45,"line":64},[43,171,67],{"class":53},[43,173,71],{"class":70},[43,175,74],{"class":53},[43,177,78],{"class":77},[43,179,82],{"class":81},[43,181,85],{"class":77},[43,183,184,186,188,190],{"class":45,"line":88},[43,185,92],{"class":91},[43,187,95],{"class":77},[43,189,98],{"class":81},[43,191,101],{"class":77},[193,194,196],"h3",{"id":195},"what-this-code-does","What this code does",[118,198,199,208,213],{},[121,200,201,204,205,207],{},[17,202,203],{},"import os"," makes the ",[17,206,149],{}," module available",[121,209,210,212],{},[17,211,19],{}," gets the current working directory",[121,214,215,218],{},[17,216,217],{},"print(current_folder)"," shows that path on the screen",[193,220,222],{"id":221},"example-output","Example output",[14,224,225],{},"On Windows, you might see:",[34,227,229],{"className":36,"code":228,"language":38,"meta":39,"style":39},"C:\\Users\\Alice\\Projects\n",[17,230,231],{"__ignoreMap":39},[43,232,233,236,239],{"class":45,"line":46},[43,234,235],{"class":53},"C",[43,237,238],{"class":77},":\\",[43,240,242],{"class":241},"srjyR","Users\\Alice\\Projects\n",[14,244,245],{},"On macOS or Linux, you might see:",[34,247,249],{"className":36,"code":248,"language":38,"meta":39,"style":39},"\u002Fhome\u002Falice\u002Fprojects\n",[17,250,251],{"__ignoreMap":39},[43,252,253,256,259,261,264,266],{"class":45,"line":46},[43,254,255],{"class":70},"\u002F",[43,257,258],{"class":53},"home",[43,260,255],{"class":70},[43,262,263],{"class":53},"alice",[43,265,255],{"class":70},[43,267,268],{"class":53},"projects\n",[14,270,271],{},"The exact result depends on where Python is running.",[29,273,275],{"id":274},"why-the-current-working-directory-matters","Why the current working directory matters",[14,277,278,279,78],{},"The current working directory is important because ",[137,280,281],{},"relative paths depend on it",[14,283,284],{},"For example:",[34,286,288],{"className":36,"code":287,"language":38,"meta":39,"style":39},"with open(\"notes.txt\", \"r\") as file:\n    print(file.read())\n",[17,289,290,334],{"__ignoreMap":39},[43,291,292,295,298,300,304,308,310,313,316,319,321,324,327,331],{"class":45,"line":46},[43,293,294],{"class":49},"with",[43,296,297],{"class":91}," open",[43,299,95],{"class":77},[43,301,303],{"class":302},"sjJ54","\"",[43,305,307],{"class":306},"s_sjI","notes.txt",[43,309,303],{"class":302},[43,311,312],{"class":77},",",[43,314,315],{"class":302}," \"",[43,317,318],{"class":306},"r",[43,320,303],{"class":302},[43,322,323],{"class":77},")",[43,325,326],{"class":49}," as",[43,328,330],{"class":329},"sMMDD"," file",[43,332,333],{"class":77},":\n",[43,335,336,339,341,344,346,349],{"class":45,"line":57},[43,337,338],{"class":91},"    print",[43,340,95],{"class":77},[43,342,343],{"class":329},"file",[43,345,78],{"class":77},[43,347,348],{"class":81},"read",[43,350,351],{"class":77},"())\n",[14,353,354,355,358,359,361],{},"This code does ",[137,356,357],{},"not"," look everywhere on your computer for ",[17,360,307],{},". It looks in the current working directory.",[14,363,364],{},"If Python is running in a different folder than you expected, you may get a file error.",[193,366,368],{"id":367},"debugging-example","Debugging example",[34,370,372],{"className":36,"code":371,"language":38,"meta":39,"style":39},"import os\n\nprint(\"Current working directory:\", os.getcwd())\n\nwith open(\"notes.txt\", \"r\") as file:\n    print(file.read())\n",[17,373,374,380,384,407,411,442],{"__ignoreMap":39},[43,375,376,378],{"class":45,"line":46},[43,377,50],{"class":49},[43,379,54],{"class":53},[43,381,382],{"class":45,"line":57},[43,383,61],{"emptyLinePlaceholder":60},[43,385,386,388,390,392,395,397,399,401,403,405],{"class":45,"line":64},[43,387,92],{"class":91},[43,389,95],{"class":77},[43,391,303],{"class":302},[43,393,394],{"class":306},"Current working directory:",[43,396,303],{"class":302},[43,398,312],{"class":77},[43,400,74],{"class":81},[43,402,78],{"class":77},[43,404,82],{"class":81},[43,406,351],{"class":77},[43,408,409],{"class":45,"line":88},[43,410,61],{"emptyLinePlaceholder":60},[43,412,414,416,418,420,422,424,426,428,430,432,434,436,438,440],{"class":45,"line":413},5,[43,415,294],{"class":49},[43,417,297],{"class":91},[43,419,95],{"class":77},[43,421,303],{"class":302},[43,423,307],{"class":306},[43,425,303],{"class":302},[43,427,312],{"class":77},[43,429,315],{"class":302},[43,431,318],{"class":306},[43,433,303],{"class":302},[43,435,323],{"class":77},[43,437,326],{"class":49},[43,439,330],{"class":329},[43,441,333],{"class":77},[43,443,445,447,449,451,453,455],{"class":45,"line":444},6,[43,446,338],{"class":91},[43,448,95],{"class":77},[43,450,343],{"class":329},[43,452,78],{"class":77},[43,454,348],{"class":81},[43,456,351],{"class":77},[14,458,459,460,462],{},"If the file cannot be found, printing ",[17,461,19],{}," helps you check where Python is looking.",[14,464,465],{},"This is especially helpful when running code from:",[118,467,468,471,474,477],{},[121,469,470],{},"A terminal",[121,472,473],{},"An IDE",[121,475,476],{},"A code editor run button",[121,478,479],{},"A notebook environment",[14,481,482,483,78],{},"If you are working with file paths, see ",[484,485,487],"a",{"href":486},"\u002Flearn\u002Fworking-with-file-paths-in-python","working with file paths in Python",[29,489,491],{"id":490},"osgetcwd-vs-script-location","os.getcwd() vs script location",[14,493,494],{},"Beginners often confuse the current working directory with the folder where the Python file is saved.",[14,496,497,498,78],{},"They are ",[137,499,500],{},"not always the same",[118,502,503,508],{},[121,504,505,507],{},[17,506,19],{}," gives the current working folder",[121,509,510,511,513],{},"It does ",[137,512,357],{}," necessarily give the script file location",[14,515,516],{},"For example, suppose your file is saved here:",[34,518,520],{"className":36,"code":519,"language":38,"meta":39,"style":39},"\u002Fhome\u002Falice\u002Fprojects\u002Fapp\u002Fscript.py\n",[17,521,522],{"__ignoreMap":39},[43,523,524,526,528,530,532,534,537,539,542,544,547,549],{"class":45,"line":46},[43,525,255],{"class":70},[43,527,258],{"class":53},[43,529,255],{"class":70},[43,531,263],{"class":53},[43,533,255],{"class":70},[43,535,536],{"class":53},"projects",[43,538,255],{"class":70},[43,540,541],{"class":53},"app",[43,543,255],{"class":70},[43,545,546],{"class":53},"script",[43,548,78],{"class":77},[43,550,552],{"class":551},"skxfh","py\n",[14,554,555],{},"But you run it from this folder:",[34,557,559],{"className":36,"code":558,"language":38,"meta":39,"style":39},"\u002Fhome\u002Falice\n",[17,560,561],{"__ignoreMap":39},[43,562,563,565,567,569],{"class":45,"line":46},[43,564,255],{"class":70},[43,566,258],{"class":53},[43,568,255],{"class":70},[43,570,571],{"class":53},"alice\n",[14,573,574,575,577],{},"Then ",[17,576,19],{}," may return:",[34,579,580],{"className":36,"code":558,"language":38,"meta":39,"style":39},[17,581,582],{"__ignoreMap":39},[43,583,584,586,588,590],{"class":45,"line":46},[43,585,255],{"class":70},[43,587,258],{"class":53},[43,589,255],{"class":70},[43,591,571],{"class":53},[14,593,594,595,78],{},"Even though the script itself is stored in ",[17,596,597],{},"\u002Fhome\u002Falice\u002Fprojects\u002Fapp",[14,599,600],{},"This difference is common in IDEs, where the program may start from a project folder, workspace folder, or another configured location.",[29,602,604],{"id":603},"common-beginner-use-cases","Common beginner use cases",[14,606,607,608,116],{},"Here are a few practical ways beginners use ",[17,609,19],{},[118,611,612,615,618,621],{},[121,613,614],{},"Check where Python is looking for files",[121,616,617],{},"Build a full path before opening a file",[121,619,620],{},"Print the folder while debugging",[121,622,623],{},"Confirm the environment before changing directories",[14,625,626],{},"Example:",[34,628,630],{"className":36,"code":629,"language":38,"meta":39,"style":39},"import os\n\nfolder = os.getcwd()\nfilename = \"report.txt\"\nfull_path = os.path.join(folder, filename)\n\nprint(full_path)\n",[17,631,632,638,642,657,672,703,707],{"__ignoreMap":39},[43,633,634,636],{"class":45,"line":46},[43,635,50],{"class":49},[43,637,54],{"class":53},[43,639,640],{"class":45,"line":57},[43,641,61],{"emptyLinePlaceholder":60},[43,643,644,647,649,651,653,655],{"class":45,"line":64},[43,645,646],{"class":53},"folder ",[43,648,71],{"class":70},[43,650,74],{"class":53},[43,652,78],{"class":77},[43,654,82],{"class":81},[43,656,85],{"class":77},[43,658,659,662,664,666,669],{"class":45,"line":88},[43,660,661],{"class":53},"filename ",[43,663,71],{"class":70},[43,665,315],{"class":302},[43,667,668],{"class":306},"report.txt",[43,670,671],{"class":302},"\"\n",[43,673,674,677,679,681,683,686,688,691,693,696,698,701],{"class":45,"line":413},[43,675,676],{"class":53},"full_path ",[43,678,71],{"class":70},[43,680,74],{"class":53},[43,682,78],{"class":77},[43,684,685],{"class":551},"path",[43,687,78],{"class":77},[43,689,690],{"class":81},"join",[43,692,95],{"class":77},[43,694,695],{"class":81},"folder",[43,697,312],{"class":77},[43,699,700],{"class":81}," filename",[43,702,101],{"class":77},[43,704,705],{"class":45,"line":444},[43,706,61],{"emptyLinePlaceholder":60},[43,708,710,712,714,717],{"class":45,"line":709},7,[43,711,92],{"class":91},[43,713,95],{"class":77},[43,715,716],{"class":81},"full_path",[43,718,101],{"class":77},[14,720,721,722,728],{},"This example uses ",[484,723,725],{"href":724},"\u002Fstandard-library\u002Fos.path.join-function-explained",[17,726,727],{},"os.path.join()"," to build a path safely.",[29,730,732],{"id":731},"related-functions-to-know","Related functions to know",[14,734,735,737],{},[17,736,19],{}," is often used with other path-related tools:",[118,739,740,749,756],{},[121,741,742,748],{},[484,743,745],{"href":744},"\u002Fstandard-library\u002Fos.chdir-function-explained",[17,746,747],{},"os.chdir()"," changes the current working directory",[121,750,751,755],{},[484,752,753],{"href":724},[17,754,727],{}," combines folder and file names safely",[121,757,758,764],{},[484,759,761],{"href":760},"\u002Fstandard-library\u002Fos.path.exists-function-explained",[17,762,763],{},"os.path.exists()"," checks whether a path exists",[14,766,626],{},[34,768,770],{"className":36,"code":769,"language":38,"meta":39,"style":39},"import os\n\nprint(\"Before:\", os.getcwd())\n\nif os.path.exists(\"myfile.txt\"):\n    print(\"File found\")\nelse:\n    print(\"File not found\")\n",[17,771,772,778,782,805,809,837,852,859],{"__ignoreMap":39},[43,773,774,776],{"class":45,"line":46},[43,775,50],{"class":49},[43,777,54],{"class":53},[43,779,780],{"class":45,"line":57},[43,781,61],{"emptyLinePlaceholder":60},[43,783,784,786,788,790,793,795,797,799,801,803],{"class":45,"line":64},[43,785,92],{"class":91},[43,787,95],{"class":77},[43,789,303],{"class":302},[43,791,792],{"class":306},"Before:",[43,794,303],{"class":302},[43,796,312],{"class":77},[43,798,74],{"class":81},[43,800,78],{"class":77},[43,802,82],{"class":81},[43,804,351],{"class":77},[43,806,807],{"class":45,"line":88},[43,808,61],{"emptyLinePlaceholder":60},[43,810,811,814,816,818,820,822,825,827,829,832,834],{"class":45,"line":413},[43,812,813],{"class":49},"if",[43,815,74],{"class":53},[43,817,78],{"class":77},[43,819,685],{"class":551},[43,821,78],{"class":77},[43,823,824],{"class":81},"exists",[43,826,95],{"class":77},[43,828,303],{"class":302},[43,830,831],{"class":306},"myfile.txt",[43,833,303],{"class":302},[43,835,836],{"class":77},"):\n",[43,838,839,841,843,845,848,850],{"class":45,"line":444},[43,840,338],{"class":91},[43,842,95],{"class":77},[43,844,303],{"class":302},[43,846,847],{"class":306},"File found",[43,849,303],{"class":302},[43,851,101],{"class":77},[43,853,854,857],{"class":45,"line":709},[43,855,856],{"class":49},"else",[43,858,333],{"class":77},[43,860,862,864,866,868,871,873],{"class":45,"line":861},8,[43,863,338],{"class":91},[43,865,95],{"class":77},[43,867,303],{"class":302},[43,869,870],{"class":306},"File not found",[43,872,303],{"class":302},[43,874,101],{"class":77},[14,876,877,878,78],{},"If you want a broader view of path and system tools, read the ",[484,879,881],{"href":880},"\u002Fstandard-library\u002Fpython-os-module-overview","Python os module overview",[29,883,885],{"id":884},"common-mistakes","Common mistakes",[14,887,888,889,116],{},"These are common beginner mistakes when using ",[17,890,19],{},[118,892,893,896,902,910],{},[121,894,895],{},"Using a relative file path without checking the current working directory",[121,897,898,899,901],{},"Assuming ",[17,900,19],{}," returns the script file location",[121,903,904,905,907,908],{},"Forgetting to import ",[17,906,149],{}," before calling ",[17,909,19],{},[121,911,912],{},"Running the same script from different folders and getting different results",[14,914,915],{},"A very common problem looks like this:",[34,917,919],{"className":36,"code":918,"language":38,"meta":39,"style":39},"import os\n\nprint(os.getcwd())\n\nwith open(\"myfile.txt\", \"r\") as file:\n    print(file.read())\n",[17,920,921,927,931,945,949,979],{"__ignoreMap":39},[43,922,923,925],{"class":45,"line":46},[43,924,50],{"class":49},[43,926,54],{"class":53},[43,928,929],{"class":45,"line":57},[43,930,61],{"emptyLinePlaceholder":60},[43,932,933,935,937,939,941,943],{"class":45,"line":64},[43,934,92],{"class":91},[43,936,95],{"class":77},[43,938,149],{"class":81},[43,940,78],{"class":77},[43,942,82],{"class":81},[43,944,351],{"class":77},[43,946,947],{"class":45,"line":88},[43,948,61],{"emptyLinePlaceholder":60},[43,950,951,953,955,957,959,961,963,965,967,969,971,973,975,977],{"class":45,"line":413},[43,952,294],{"class":49},[43,954,297],{"class":91},[43,956,95],{"class":77},[43,958,303],{"class":302},[43,960,831],{"class":306},[43,962,303],{"class":302},[43,964,312],{"class":77},[43,966,315],{"class":302},[43,968,318],{"class":306},[43,970,303],{"class":302},[43,972,323],{"class":77},[43,974,326],{"class":49},[43,976,330],{"class":329},[43,978,333],{"class":77},[43,980,981,983,985,987,989,991],{"class":45,"line":444},[43,982,338],{"class":91},[43,984,95],{"class":77},[43,986,343],{"class":329},[43,988,78],{"class":77},[43,990,348],{"class":81},[43,992,351],{"class":77},[14,994,995,996,78],{},"If this fails, the file may not be in the folder shown by ",[17,997,19],{},[14,999,1000],{},"You can also run quick checks from the command line:",[34,1002,1006],{"className":1003,"code":1004,"language":1005,"meta":39,"style":39},"language-bash shiki shiki-themes material-theme-lighter github-light github-dark","python script.py\npwd\ncd \u002Fpath\u002Fto\u002Ffolder\npython -c \"import os; print(os.getcwd())\"\npython -c \"import os; print(os.path.exists('myfile.txt'))\"\n","bash",[17,1007,1008,1016,1021,1029,1044],{"__ignoreMap":39},[43,1009,1010,1013],{"class":45,"line":46},[43,1011,38],{"class":1012},"sbgvK",[43,1014,1015],{"class":306}," script.py\n",[43,1017,1018],{"class":45,"line":57},[43,1019,1020],{"class":91},"pwd\n",[43,1022,1023,1026],{"class":45,"line":64},[43,1024,1025],{"class":91},"cd",[43,1027,1028],{"class":306}," \u002Fpath\u002Fto\u002Ffolder\n",[43,1030,1031,1033,1037,1039,1042],{"class":45,"line":88},[43,1032,38],{"class":1012},[43,1034,1036],{"class":1035},"stzsN"," -c",[43,1038,315],{"class":302},[43,1040,1041],{"class":306},"import os; print(os.getcwd())",[43,1043,671],{"class":302},[43,1045,1046,1048,1050,1052,1055],{"class":45,"line":413},[43,1047,38],{"class":1012},[43,1049,1036],{"class":1035},[43,1051,315],{"class":302},[43,1053,1054],{"class":306},"import os; print(os.path.exists('myfile.txt'))",[43,1056,671],{"class":302},[14,1058,1059,1060,78],{},"If your program cannot find a file, see ",[484,1061,1063,1064,1067],{"href":1062},"\u002Ferrors\u002Ffilenotfounderror-errno-2-no-such-file-or-directory-fix","FileNotFoundError: ",[43,1065,1066],{},"Errno 2"," No such file or directory",[29,1069,1071],{"id":1070},"faq","FAQ",[193,1073,1075],{"id":1074},"what-does-osgetcwd-return","What does os.getcwd() return?",[14,1077,1078],{},"It returns the current working directory as a string.",[193,1080,1082],{"id":1081},"does-osgetcwd-return-the-script-location","Does os.getcwd() return the script location?",[14,1084,1085],{},"No. It returns the current working directory, which may be different from the script folder.",[193,1087,1089],{"id":1088},"do-i-need-to-pass-an-argument-to-osgetcwd","Do I need to pass an argument to os.getcwd()?",[14,1091,1092],{},"No. It takes no arguments.",[193,1094,1096],{"id":1095},"why-does-my-file-open-in-one-place-but-not-another","Why does my file open in one place but not another?",[14,1098,1099],{},"Your current working directory may be different, so a relative path points to a different folder.",[29,1101,1103],{"id":1102},"see-also","See also",[118,1105,1106,1110,1115,1120,1125,1131],{},[121,1107,1108],{},[484,1109,881],{"href":880},[121,1111,1112],{},[484,1113,1114],{"href":744},"os.chdir() function explained",[121,1116,1117],{},[484,1118,1119],{"href":724},"os.path.join() function explained",[121,1121,1122],{},[484,1123,1124],{"href":760},"os.path.exists() function explained",[121,1126,1127],{},[484,1128,1130],{"href":1129},"\u002Fhow-to\u002Fhow-to-check-if-a-file-exists-in-python","How to check if a file exists in Python",[121,1132,1133],{},[484,1134,1063,1135,1137],{"href":1062},[43,1136,1066],{}," No such file or directory fix",[1139,1140,1141],"style",{},"html pre.shiki code .sVHd0, html code.shiki .sVHd0{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#D73A49;--shiki-default-font-style:inherit;--shiki-dark:#F97583;--shiki-dark-font-style:inherit}html pre.shiki code .su5hD, html code.shiki .su5hD{--shiki-light:#90A4AE;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .smGrS, html code.shiki .smGrS{--shiki-light:#39ADB5;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sP7_E, html code.shiki .sP7_E{--shiki-light:#39ADB5;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .slqww, html code.shiki .slqww{--shiki-light:#6182B8;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sptTA, html code.shiki .sptTA{--shiki-light:#6182B8;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .srjyR, html code.shiki .srjyR{--shiki-light:#90A4AE;--shiki-light-font-style:inherit;--shiki-default:#B31D28;--shiki-default-font-style:italic;--shiki-dark:#FDAEB7;--shiki-dark-font-style:italic}html pre.shiki code .sjJ54, html code.shiki .sjJ54{--shiki-light:#39ADB5;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .s_sjI, html code.shiki .s_sjI{--shiki-light:#91B859;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sMMDD, html code.shiki .sMMDD{--shiki-light:#90A4AE;--shiki-default:#E36209;--shiki-dark:#FFAB70}html pre.shiki code .skxfh, html code.shiki .skxfh{--shiki-light:#E53935;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sbgvK, html code.shiki .sbgvK{--shiki-light:#E2931D;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .stzsN, html code.shiki .stzsN{--shiki-light:#91B859;--shiki-default:#005CC5;--shiki-dark:#79B8FF}",{"title":39,"searchDepth":57,"depth":57,"links":1143},[1144,1145,1146,1150,1153,1154,1155,1156,1157,1163],{"id":31,"depth":57,"text":32},{"id":110,"depth":57,"text":111},{"id":142,"depth":57,"text":143,"children":1147},[1148,1149],{"id":195,"depth":64,"text":196},{"id":221,"depth":64,"text":222},{"id":274,"depth":57,"text":275,"children":1151},[1152],{"id":367,"depth":64,"text":368},{"id":490,"depth":57,"text":491},{"id":603,"depth":57,"text":604},{"id":731,"depth":57,"text":732},{"id":884,"depth":57,"text":885},{"id":1070,"depth":57,"text":1071,"children":1158},[1159,1160,1161,1162],{"id":1074,"depth":64,"text":1075},{"id":1081,"depth":64,"text":1082},{"id":1088,"depth":64,"text":1089},{"id":1095,"depth":64,"text":1096},{"id":1102,"depth":57,"text":1103},"Master os.getcwd function explained in our comprehensive Python beginner guide.","md",{},"\u002Fstandard-library\u002Fos.getcwd-function-explained",{"title":5,"description":1164},"standard-library\u002Fos.getcwd-function-explained","NG4N4UIqUA-AxFPytoejr6i7kl84omZZRDGhJyjJEYU",1777585470265]