First, some nitpicking: Include the whole traceback when posting about
errors please. Don't write if some_boolean_expression != True:
instead prefer if not some_boolean_expression:. Also, in your code
except (Except), ex: return ex the parentheses are redundant,
there's no Except Exception
ryniek90 wrote:
div class=moz-text-flowed style=font-family: -moz-fixed
First, some nitpicking: Include the whole traceback when posting about
errors please. Don't write if some_boolean_expression != True:
instead prefer if not some_boolean_expression:. Also, in your code
except (Except), ex:
First, some nitpicking: Include the whole traceback when posting about
errors please. Don't write if some_boolean_expression != True:
instead prefer if not some_boolean_expression:. Also, in your code
except (Except), ex: return ex the parentheses are redundant,
there's no Except Exception
WTF??
Why on IDLE it works, but when i run this script in cmd.exe, the
os.getenv('HOME') goes NoneType?
I'm to newbie yet to understand this :/
HOME is simply not a standard environment variable that Windows provides.
Any program can set/add environment variables as it deems fit; in this
WTF??
Why on IDLE it works, but when i run this script in cmd.exe, the
os.getenv('HOME') goes NoneType?
I'm to newbie yet to understand this :/
HOME is simply not a standard environment variable that Windows
provides. Any program can set/add environment variables as it
I've got some code that checks priviliges on two paths:
First - chosen by user
Second - hardcoded home directory represented by **os.getenv('HOME')** -
(os.getenv('HOME') works both on Linux and Windows)
Here's the code:
def __check_set_perm(self, rd_obj_path, backup_dest):
try:
On Aug 21, 1:33 pm, ryniek90 rynie...@gmail.com wrote:
I've got some code that checks priviliges on two paths:
First - chosen by user
Second - hardcoded home directory represented by **os.getenv('HOME')** -
(os.getenv('HOME') works both on Linux and Windows)
Here's the code:
def