From 09371628c54c7cec69b8e4ae9d437219e51d836d Mon Sep 17 00:00:00 2001 From: Papoteur Date: Mon, 7 Dec 2015 21:41:54 +0100 Subject: Adapt shebang and import in raw-format --- lib/raw_format.py | 6 +++--- 1 file 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 -- cgit v1.2.1