Skip to content

Instantly share code, notes, and snippets.

@ImJoke
Last active June 16, 2021 01:36
Show Gist options
  • Save ImJoke/a327accb93407ff2c2e8e31b4dd7e4ec to your computer and use it in GitHub Desktop.
Save ImJoke/a327accb93407ff2c2e8e31b4dd7e4ec to your computer and use it in GitHub Desktop.
from sys import argv
import subprocess
script = argv
name = str(script[0])
for i in range(0,2):
directoryName = 'copy'+str(i)
subprocess.call(['mkdir', directoryName], shell=True)
subprocess.call(['cp', name, directoryName], shell=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment