Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python reference script directory

>>> import os
>>> print(os.path.dirname(os.path.realpath(__file__))) 
C:FileLocation # Does not contain filename
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #reference #script #directory
ADD COMMENT
Topic
Name
3+5 =