This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import win32api, win32con | |
import os, os.path | |
import struct | |
import math | |
def checkPath(path, mode): | |
if not os.path.exists(path) or not os.path.isfile(path): | |
raise ValueError("{0} does not exist or isn't a file.".format(path)) | |
if not os.access(path, mode): | |
raise ValueError("Insufficient permissions: {0}".format(path)) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.