mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-04-28 19:55:36 +08:00
Update create-dist script for changes of building system.
This commit is contained in:
@@ -54,6 +54,14 @@ def extract_zip(zip_path, destination):
|
||||
z.extractall(destination)
|
||||
|
||||
|
||||
def rm_rf(path):
|
||||
try:
|
||||
shutil.rmtree(path)
|
||||
except OSError as e:
|
||||
if e.errno != errno.ENOENT:
|
||||
raise
|
||||
|
||||
|
||||
def safe_unlink(path):
|
||||
try:
|
||||
os.unlink(path)
|
||||
|
||||
Reference in New Issue
Block a user