aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2015-12-07 21:41:54 +0100
committerPapoteur <papoteur@mageialinux-online.org>2015-12-07 21:41:54 +0100
commit09371628c54c7cec69b8e4ae9d437219e51d836d (patch)
tree9a955b0706797d1d9bc7c36bfb77f85b155bc27e
parent3fa08df83410bbe1907e57f9c9090e7124b30077 (diff)
downloadisodumper-09371628c54c7cec69b8e4ae9d437219e51d836d.tar
isodumper-09371628c54c7cec69b8e4ae9d437219e51d836d.tar.gz
isodumper-09371628c54c7cec69b8e4ae9d437219e51d836d.tar.bz2
isodumper-09371628c54c7cec69b8e4ae9d437219e51d836d.tar.xz
isodumper-09371628c54c7cec69b8e4ae9d437219e51d836d.zip
Adapt shebang and import in raw-format
-rwxr-xr-xlib/raw_format.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/raw_format.py b/lib/raw_format.py
index 2d240a0..0cce0e9 100755
--- a/lib/raw_format.py
+++ b/lib/raw_format.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
#
# imported from project Mintstick, by Clement Lefebvre
# https://github.com/linuxmint/mintstick/
@@ -24,7 +24,7 @@
import os, sys
import getopt
-import parted
+
from subprocess import call
sys.path.append('/usr/lib/isodumper')
@@ -60,7 +60,7 @@ def get_mounted(target):
sys.exit(6)
def raw_format(device_path, fstype, volume_label, uid, gid):
-
+ import parted
do_umount(device_path)
# First erase MBR and partition table , if any