Scripting way to upload videos to peertube and youtube
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
331 B

  1. from os.path import join, abspath, isfile, dirname
  2. from os import listdir
  3. from shutil import copyfile
  4. def genconfig():
  5. path = join(dirname(__file__), 'config')
  6. files = [f for f in listdir(path) if isfile(join(path, f))]
  7. for f in files:
  8. copyfile(join(path, f), f)
  9. if __name__ == '__main__':
  10. genconfig()