Intel® Distribution for Python*
Support and discussions for achieving faster Python* applications and core computational packages.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
385 Discussions

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

murala_s_
Beginner
269 Views

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