Python Forum
make sys.path.append auto detect
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
make sys.path.append auto detect
#1
Hi,
I facing a problem coding in jython.
but, what I want to ask is about python.
I have to write this code on every file I've create

sys.path.append("D:\AvosLab\digital_scale\python")
but, the problem is my friends and I using git to build that app, so between my friends and I have different path of work.
so, how to make a code wich autodetect without changing the path every pulling project from git.

thank you in advance...
Reply


Messages In This Thread
make sys.path.append auto detect - by dwiga - Sep-04-2017, 07:45 AM
RE: make sys.path.append auto detect - by dwiga - Sep-07-2017, 12:39 AM

Forum Jump:

User Panel Messages

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