Answers for "python base directory"

15

working directory python

import os
cwd = os.getcwd()
Posted by: Guest on March-09-2020
7

python zip folder

import shutil
shutil.make_archive(output_filename, 'zip', dir_name)
Posted by: Guest on May-14-2020
1

python get base directory

import os
os.path.dirname(os.path.realpath(__file__))
Posted by: Guest on May-11-2020

Python Answers by Framework

Browse Popular Code Answers by Language