mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-30 07:17:05 +08:00
Add some comments
This commit is contained in:
parent
042de81177
commit
ca6b2622f9
1 changed files with 2 additions and 1 deletions
|
|
@ -17,7 +17,8 @@ import sys
|
|||
import os
|
||||
|
||||
|
||||
# This is the path to a onefile executable binary
|
||||
# This is the path to a python script, a standalone or a onefile nuitka generated binary
|
||||
# When running python interpreter without any script, sys.argv is empty hence CURRENT_EXECUTABLE would become current directory
|
||||
CURRENT_EXECUTABLE = os.path.abspath(sys.argv[0])
|
||||
CURRENT_DIR = os.path.dirname(CURRENT_EXECUTABLE)
|
||||
# When run with nuitka onefile, this will be the temp directory, else, this will be the path to current file
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue