mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2024-11-14 17:40:24 -08:00
23 lines
441 B
Python
23 lines
441 B
Python
from jaraco.windows.filesystem import trace_symlink_target
|
|
|
|
from optparse import OptionParser
|
|
|
|
|
|
def get_args():
|
|
parser = OptionParser()
|
|
options, args = parser.parse_args()
|
|
try:
|
|
options.filename = args.pop(0)
|
|
except IndexError:
|
|
parser.error('filename required')
|
|
return options
|
|
|
|
|
|
def main():
|
|
options = get_args()
|
|
print(trace_symlink_target(options.filename))
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|