You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
11 lines
218 B
Python
11 lines
218 B
Python
# Adapted 3.5 from _bootstrap_external.py
|
|
|
|
|
|
def spec_from_file_location(loader, location):
|
|
if loader:
|
|
for _ in __file__:
|
|
if location:
|
|
break
|
|
else:
|
|
return None
|