

# https://www.globalsino.com/ICs/
# Change the current directory to any directory/path


import os
import sys

DirA = os.getcwd() # Parent folder
print("The current directory, where the script is, is:")
print(DirA)

#change current working directory
os.chdir("C:\GlobalSino20230219\ICs\images2")

print("\nThe current directory after changed my directory:")
DirB = os.getcwd()
print(DirB)

#change current working directory
os.chdir("C:\GlobalSino20230219\ICs\images\ScriptPython")

print("\nThe current directory after changed my directory again:")
DirC = os.getcwd() 
print(DirC)


print("\n")
print("The directory before it is changed is:")
print(DirA)
print("The directory after it is changed is:")
print(DirB)
print("The directory after it is changed again is:")
print(DirC)



