Python Forum
How to access variables from dirsync module
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to access variables from dirsync module
#4
I tried sending the log to file and this works for me as I can
read what info I need from there, or worst case just display the output as a text file.

Thanks for pointing me towards a solution.

import logging
logging.basicConfig(filename="sync-it.log", level=logging.DEBUG)
my_log = logging.getLogger('dirsync')

and then in my dirsync line:

sync(Glo.src_fldr, Glo.dest_fldr, 'sync', logger=my_log, purge=True)
Reply


Messages In This Thread
RE: How to access variables from dirsync module - by steve_shambles - Apr-02-2020, 08:18 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  importing variables from module 8376459 1 410 Feb-18-2024, 02:24 PM
Last Post: deanhystad
  Can't access the net using Python's Selenium module ShishirModi 2 2,184 Jul-21-2020, 06:03 AM
Last Post: ShishirModi
  module to store functions/variables and how to call them? mstichler 3 2,560 Jun-03-2020, 06:49 PM
Last Post: mstichler
  help with threading module and passing global variables ricardons 1 8,078 Feb-21-2019, 12:48 PM
Last Post: stullis
  How can classes access each other Functions and Variables at the same time PythonOK 4 3,205 Dec-09-2018, 03:46 AM
Last Post: ichabod801
  f2py recovering variables from Fortran module marius 0 3,555 Dec-02-2016, 03:52 PM
Last Post: marius

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020