Community
cancel
Showing results for 
Search instead for 
Did you mean: 
murala_s_
Beginner
112 Views

Malfunctioning of os.getcwd and os.path.abspath in UEFI Python

Dear Intel,

I am facing some issues while using UEFI Python 2.7.2.

below is content of "fs0:/test1.py"

import os
os.chdir('Chipsec')
os.system('python test.py')

Below is content of "fs0:\Chipsec\test2.py"

import os
print os.getcwd()

Execute file in root of drive,

fs0:\>python test1.py

Output: fs0:Chipsec            #Here '/' missing

Execute test2.py from Chipsec folder,

fs0:Chipsec\>python test2.py

Output: fs0:\Chipsec            #Properly shown with '/'

==================================================

Other this about abspath,

Below is content of test3.py

print os.path.abspath('fs0:chipsec')

Output: Fs0:chipsec\fs0:chipsec

In case of windows Python 2.7.x showing output as fs0:\chipsec

 

Can you please help to get this resolved,

 

Thanks,

msswamy.

0 Kudos
0 Replies
Reply