Updated program so it can executed from anywhere, instead of from bin.
This commit is contained in:
parent
76845d60d7
commit
5507c3321c
|
|
@ -2,9 +2,13 @@
|
|||
|
||||
import argparse
|
||||
import sys
|
||||
import os
|
||||
|
||||
# Rules
|
||||
sys.path.append('..\modules')
|
||||
# Get the path to the executable
|
||||
executablePath = os.path.dirname(os.path.realpath(__file__))
|
||||
|
||||
# Import program modules
|
||||
sys.path.append(executablePath + '\..\modules')
|
||||
import rule_list
|
||||
import vhdlFile
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue