Skip to content

strange behavior when running on Windows #379

@stephane-archer

Description

@stephane-archer

On Windows youtube-upload --help open Firefox and display:

#!C:\Users\steph\AppData\Local\Programs\Python\Python310\python.exe

if __name__ == '__main__':
    
    #Allows you to a relative import from the parent folder
    import os.path, sys
    sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir))    
    
    from youtube_upload import main    
    main.run()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions